@Test public void testGetPathFromRoot() { System.out.println("getPathToRoot"); LinkedList<Concept> expResult = new LinkedList<>(); expResult.add(instance.getRoot()); expResult.add(ad); expResult.add(a); expResult.add(c); expResult.add(f); List<Concept> result = f.getPathFromRoot(); assertEquals(expResult, result); }
public Concept getRoot() { return root; }
Taxonomy { public Concept getRoot() { return root; } }
Taxonomy { public Concept getRoot() { return root; } Taxonomy(String... rootConcept); }
Taxonomy { public Concept getRoot() { return root; } Taxonomy(String... rootConcept); Concept getRoot(); Concept getConcept(String keyword); List<String> getConcepts(); Concept lowestCommonAncestor(String v, String w); Concept lowestCommonAncestor(Concept v, Concept w); }
Taxonomy { public Concept getRoot() { return root; } Taxonomy(String... rootConcept); Concept getRoot(); Concept getConcept(String keyword); List<String> getConcepts(); Concept lowestCommonAncestor(String v, String w); Concept lowestCommonAncestor(Concept v, Concept w);  }