test(TypeSerializerTest): clean out some commented and out-of-scope code
import org.terasology.engine.persistence.typeHandling.gson.GsonPersistedDataReader;
import org.terasology.engine.persistence.typeHandling.gson.GsonPersistedDataSerializer;
import org.terasology.engine.persistence.typeHandling.gson.GsonPersistedDataWriter;
-import org.terasology.gestalt.module.ModuleEnvironment;
import org.terasology.gestalt.naming.Name;
import org.terasology.nui.Color;
import org.terasology.persistence.serializers.Serializer;
@@ -109,11 +108,6 @@ void testProtobufSerializeDeserialize() throws IOException {
assertNotEmpty(typeRegistry.load("org.terasology.engine.persistence.serializers.TypeSerializerTest$Animal"));
assertNotEmpty(typeRegistry.load("org.terasology.engine.persistence.serializers.TypeSerializerTest$Dog"));
- ModuleEnvironment env = moduleManager.getEnvironment();
- assertNotEmpty(env.getSubtypesOf(Animal.class));
-
-// assertNotEmpty(typeRegistry.getSubtypesOf(Animal.class));
-
assertEquals(INSTANCE, deserializedInstance);
}
@@ -134,11 +128,6 @@ void testJsonSerializeDeserialize() throws IOException {
assertNotEmpty(typeRegistry.load("org.terasology.engine.persistence.serializers.TypeSerializerTest$Animal"));
assertNotEmpty(typeRegistry.load("org.terasology.engine.persistence.serializers.TypeSerializerTest$Dog"));
-// ModuleEnvironment env = moduleManager.getEnvironment();
-// assertNotEmpty(env.getSubtypesOf(Animal.class));
-
-// assertNotEmpty(typeRegistry.getSubtypesOf(Animal.class));
-
assertEquals(INSTANCE, deserializedInstance);
}
