@Test public void testShortNamesAllowed() throws UIMAException { Collection<Object> shortNamed = new TaxonomyFactory( new String[] {Entity.class.getSimpleName(), Event.class.getSimpleName()}) .create(); Object next = shortNamed.iterator().next(); assertTrue(next instanceof Map<?, ?>); Map<String, Collection<Object>> map = (Map<String, Collection<Object>>) next; assertTrue("There is a value in taxonomy for Entity", map.get("Entity").size() > 1); }
public Collection<Object> create() { Collection<Object> completeTaxonomyTree = new ArrayList<>(); for (String typeName : includedTypeNames) { completeTaxonomyTree.add(createTaxonomyTreeForType(typeName)); } return completeTaxonomyTree; }
TaxonomyFactory { public Collection<Object> create() { Collection<Object> completeTaxonomyTree = new ArrayList<>(); for (String typeName : includedTypeNames) { completeTaxonomyTree.add(createTaxonomyTreeForType(typeName)); } return completeTaxonomyTree; } }
TaxonomyFactory { public Collection<Object> create() { Collection<Object> completeTaxonomyTree = new ArrayList<>(); for (String typeName : includedTypeNames) { completeTaxonomyTree.add(createTaxonomyTreeForType(typeName)); } return completeTaxonomyTree; } TaxonomyFactory(String[] includedTypeNames);  TaxonomyFactory(TypeSystem typeSystem, String[] includedTypeNames); }
TaxonomyFactory { public Collection<Object> create() { Collection<Object> completeTaxonomyTree = new ArrayList<>(); for (String typeName : includedTypeNames) { completeTaxonomyTree.add(createTaxonomyTreeForType(typeName)); } return completeTaxonomyTree; } TaxonomyFactory(String[] includedTypeNames);  TaxonomyFactory(TypeSystem typeSystem, String[] includedTypeNames); Collection<Object> create(); }
TaxonomyFactory { public Collection<Object> create() { Collection<Object> completeTaxonomyTree = new ArrayList<>(); for (String typeName : includedTypeNames) { completeTaxonomyTree.add(createTaxonomyTreeForType(typeName)); } return completeTaxonomyTree; } TaxonomyFactory(String[] includedTypeNames);  TaxonomyFactory(TypeSystem typeSystem, String[] includedTypeNames); Collection<Object> create();  }