@Test public void testClassification() throws IOException { Taxon child = new Taxon(); child.setIdentifier("111"); child.setScientificName("aaa"); child.setScientificNameAuthorship("L."); child.setParentNameUsage(taxon); child.setTaxonRank(Rank.GENUS); shouldCompileTo("{{classification this}}", child, "<ol><li>Family: <a href=\"/taxon/urn:lsid:ipni.org:names:1-1\"><em>Aralidiaceae</em> Philipson & B.C.Stone</a>" + "<ol><li><h1 class=\"c-summary__heading\"><em>aaa</em> <small>L.</small></h1></li>" + "<ol></li></ol>"); }
public CharSequence classification(Taxon taxon, Options options) { List<Taxon> higherClassification = taxon.getHigherClassification(); String classification = classificationLine(higherClassification, 0, options); return new Handlebars.SafeString(classification); }
NameHelper { public CharSequence classification(Taxon taxon, Options options) { List<Taxon> higherClassification = taxon.getHigherClassification(); String classification = classificationLine(higherClassification, 0, options); return new Handlebars.SafeString(classification); } }
NameHelper { public CharSequence classification(Taxon taxon, Options options) { List<Taxon> higherClassification = taxon.getHigherClassification(); String classification = classificationLine(higherClassification, 0, options); return new Handlebars.SafeString(classification); }  }
NameHelper { public CharSequence classification(Taxon taxon, Options options) { List<Taxon> higherClassification = taxon.getHigherClassification(); String classification = classificationLine(higherClassification, 0, options); return new Handlebars.SafeString(classification); }  CharSequence taxonName(Taxon taxon); CharSequence nameAndAuthor(final Taxon taxon, final Options options); CharSequence taxonNameAndAuthor(final Taxon taxon, final Options options); CharSequence taxonLink(final Taxon taxon, final Options options); CharSequence taxonLinkWithoutAuthor(final Taxon taxon, final Options options); CharSequence classification(Taxon taxon, Options options); CharSequence childRank(Taxon taxon, Options options); }
NameHelper { public CharSequence classification(Taxon taxon, Options options) { List<Taxon> higherClassification = taxon.getHigherClassification(); String classification = classificationLine(higherClassification, 0, options); return new Handlebars.SafeString(classification); }  CharSequence taxonName(Taxon taxon); CharSequence nameAndAuthor(final Taxon taxon, final Options options); CharSequence taxonNameAndAuthor(final Taxon taxon, final Options options); CharSequence taxonLink(final Taxon taxon, final Options options); CharSequence taxonLinkWithoutAuthor(final Taxon taxon, final Options options); CharSequence classification(Taxon taxon, Options options); CharSequence childRank(Taxon taxon, Options options);  }