NameFormatter { public static String canonicalCompleteHtml(ParsedName n) { return buildName(n, true, true, true, true, true, true, false, true, true, true, true, true, true, true); } private  NameFormatter(); static String canonical(ParsedName n); static String canonicalWithoutAuthorship(ParsedName n); static String canonicalMinimal(ParsedName n); static String canonicalComplete(ParsedName n); static String canonicalCompleteHtml(ParsedName n); static String authorshipComplete(ParsedAuthorship n); static String authorString(Authorship authors, boolean inclYear); static String buildName(ParsedName n,
                                 boolean hybridMarker,
                                 boolean rankMarker,
                                 boolean authorship,
                                 boolean genusForinfrageneric,
                                 boolean infrageneric,
                                 boolean decomposition,
                                 boolean asciiOnly,
                                 boolean showQualifier,
                                 boolean showIndet,
                                 boolean nomNote,
                                 boolean showSensu,
                                 boolean showCultivar,
                                 boolean showStrain,
                                 boolean html
  ); static void appendAuthorship(StringBuilder sb, Authorship auth, boolean includeYear); static final char HYBRID_MARKER; }
@Test public void inedNames() throws Exception { pn.setGenus("Acranthera"); pn.setSpecificEpithet("virescens"); pn.setBasionymAuthorship(Authorship.authors("Ridl.")); pn.setCode(NomCode.BOTANICAL); pn.setManuscript(true); pn.setNomenclaturalNote("ined."); assertEquals("Acranthera virescens (Ridl.)", pn.canonicalName()); assertEquals("Acranthera virescens (Ridl.), ined.", pn.canonicalNameComplete()); assertEquals("<i>Acranthera</i> <i>virescens</i> (Ridl.), ined.", NameFormatter.canonicalCompleteHtml(pn)); assertEquals("Acranthera virescens (Ridl.)", pn.canonicalName()); assertEquals("Acranthera virescens (Ridl.), ined.", pn.canonicalNameComplete()); assertEquals("<i>Acranthera</i> <i>virescens</i> (Ridl.), ined.", NameFormatter.canonicalCompleteHtml(pn)); }