@Test public void checkFuzzyNegativeTest() { SpeciesMatchRequest matchRequest = SpeciesMatchRequest.builder() .withKingdom("") .withPhylum("") .withClazz("") .withOrder("") .withFamily("something") .withGenus("something") .build(); NameUsageMatch usageMatch = new NameUsageMatch(); Diagnostics diagnostics = new Diagnostics(); diagnostics.setMatchType(MatchType.FUZZY); usageMatch.setDiagnostics(diagnostics); boolean result = TaxonomyInterpreter.checkFuzzy(usageMatch, matchRequest); Assert.assertFalse(result); }
@VisibleForTesting protected static boolean checkFuzzy(NameUsageMatch usageMatch, SpeciesMatchRequest matchRequest) { boolean isFuzzy = MatchType.FUZZY == usageMatch.getDiagnostics().getMatchType(); boolean isEmptyTaxa = Strings.isNullOrEmpty(matchRequest.getKingdom()) && Strings.isNullOrEmpty(matchRequest.getPhylum()) && Strings.isNullOrEmpty(matchRequest.getClazz()) && Strings.isNullOrEmpty(matchRequest.getOrder()) && Strings.isNullOrEmpty(matchRequest.getFamily()); return isFuzzy && isEmptyTaxa; }
TaxonomyInterpreter { @VisibleForTesting protected static boolean checkFuzzy(NameUsageMatch usageMatch, SpeciesMatchRequest matchRequest) { boolean isFuzzy = MatchType.FUZZY == usageMatch.getDiagnostics().getMatchType(); boolean isEmptyTaxa = Strings.isNullOrEmpty(matchRequest.getKingdom()) && Strings.isNullOrEmpty(matchRequest.getPhylum()) && Strings.isNullOrEmpty(matchRequest.getClazz()) && Strings.isNullOrEmpty(matchRequest.getOrder()) && Strings.isNullOrEmpty(matchRequest.getFamily()); return isFuzzy && isEmptyTaxa; } }
TaxonomyInterpreter { @VisibleForTesting protected static boolean checkFuzzy(NameUsageMatch usageMatch, SpeciesMatchRequest matchRequest) { boolean isFuzzy = MatchType.FUZZY == usageMatch.getDiagnostics().getMatchType(); boolean isEmptyTaxa = Strings.isNullOrEmpty(matchRequest.getKingdom()) && Strings.isNullOrEmpty(matchRequest.getPhylum()) && Strings.isNullOrEmpty(matchRequest.getClazz()) && Strings.isNullOrEmpty(matchRequest.getOrder()) && Strings.isNullOrEmpty(matchRequest.getFamily()); return isFuzzy && isEmptyTaxa; }  }
TaxonomyInterpreter { @VisibleForTesting protected static boolean checkFuzzy(NameUsageMatch usageMatch, SpeciesMatchRequest matchRequest) { boolean isFuzzy = MatchType.FUZZY == usageMatch.getDiagnostics().getMatchType(); boolean isEmptyTaxa = Strings.isNullOrEmpty(matchRequest.getKingdom()) && Strings.isNullOrEmpty(matchRequest.getPhylum()) && Strings.isNullOrEmpty(matchRequest.getClazz()) && Strings.isNullOrEmpty(matchRequest.getOrder()) && Strings.isNullOrEmpty(matchRequest.getFamily()); return isFuzzy && isEmptyTaxa; }  static BiConsumer<ExtendedRecord, TaxonRecord> taxonomyInterpreter(
      KeyValueStore<SpeciesMatchRequest, NameUsageMatch> kvStore); }
TaxonomyInterpreter { @VisibleForTesting protected static boolean checkFuzzy(NameUsageMatch usageMatch, SpeciesMatchRequest matchRequest) { boolean isFuzzy = MatchType.FUZZY == usageMatch.getDiagnostics().getMatchType(); boolean isEmptyTaxa = Strings.isNullOrEmpty(matchRequest.getKingdom()) && Strings.isNullOrEmpty(matchRequest.getPhylum()) && Strings.isNullOrEmpty(matchRequest.getClazz()) && Strings.isNullOrEmpty(matchRequest.getOrder()) && Strings.isNullOrEmpty(matchRequest.getFamily()); return isFuzzy && isEmptyTaxa; }  static BiConsumer<ExtendedRecord, TaxonRecord> taxonomyInterpreter(
      KeyValueStore<SpeciesMatchRequest, NameUsageMatch> kvStore);  }