@Test public void seeminglyGoodName() { assertFalse(KnownBadNameFilter.seeminglyGoodNameOrId("sp", null)); assertTrue(KnownBadNameFilter.seeminglyGoodNameOrId("sp", "EOL:1234")); assertTrue(KnownBadNameFilter.seeminglyGoodNameOrId("something long", null)); assertTrue(KnownBadNameFilter.seeminglyGoodNameOrId(null, "EOL:123")); }
static boolean seeminglyGoodNameOrId(String name, String externalId) { return externalId != null || (name != null && name.length() > 1 && !KNOWN_BAD_NAMES.contains(name)); }
KnownBadNameFilter implements TaxonFilter { static boolean seeminglyGoodNameOrId(String name, String externalId) { return externalId != null || (name != null && name.length() > 1 && !KNOWN_BAD_NAMES.contains(name)); } }
KnownBadNameFilter implements TaxonFilter { static boolean seeminglyGoodNameOrId(String name, String externalId) { return externalId != null || (name != null && name.length() > 1 && !KNOWN_BAD_NAMES.contains(name)); }  }
KnownBadNameFilter implements TaxonFilter { static boolean seeminglyGoodNameOrId(String name, String externalId) { return externalId != null || (name != null && name.length() > 1 && !KNOWN_BAD_NAMES.contains(name)); }  @Override boolean shouldInclude(Taxon taxon); }
KnownBadNameFilter implements TaxonFilter { static boolean seeminglyGoodNameOrId(String name, String externalId) { return externalId != null || (name != null && name.length() > 1 && !KNOWN_BAD_NAMES.contains(name)); }  @Override boolean shouldInclude(Taxon taxon);  }