Skip to content

Commit

Permalink
TEMP: Log subtypes in TypeRegistryImplTest
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltak committed Aug 10, 2019
1 parent 66a9dcd commit f5a0caf
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

import org.junit.Test;
import org.reflections.Reflections;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.terasology.ModuleEnvironmentTest;
import org.terasology.entitySystem.Component;
import org.terasology.naming.Name;
Expand All @@ -29,13 +31,19 @@
import static org.junit.Assert.assertTrue;

public class TypeRegistryImplTest extends ModuleEnvironmentTest {
private static final Logger LOGGER = LoggerFactory.getLogger(TypeRegistryImplTest.class);

static {
Reflections.log = null;
//Reflections.log = null;
}

@Test
public void testRegistry() {
assertTrue(typeRegistry.getSubtypesOf(Collection.class).contains(TreeSet.class));
Set<Class<? extends Collection>> collectionSubtypes = typeRegistry.getSubtypesOf(Collection.class);

LOGGER.info("{}", collectionSubtypes);

assertTrue(collectionSubtypes.contains(TreeSet.class));

Set<Name> modulesDeclaringComponents =
typeRegistry.getSubtypesOf(Component.class).stream()
Expand Down

0 comments on commit f5a0caf

Please sign in to comment.