@Test public void apply_whenCompanyMatchDbKeyAndProjectBlank_expectTrue() { when(dbKey.getCompany()).thenReturn("filterC"); assertTrue(new DBKeyProjectCompanyPredicate("filterC", null).apply(dbKey)); }
@Override public boolean apply(DBKey dbKey) { return companyMatches(dbKey) && projectMatches(dbKey); }
DBKeyProjectCompanyPredicate implements Predicate<DBKey> { @Override public boolean apply(DBKey dbKey) { return companyMatches(dbKey) && projectMatches(dbKey); } }
DBKeyProjectCompanyPredicate implements Predicate<DBKey> { @Override public boolean apply(DBKey dbKey) { return companyMatches(dbKey) && projectMatches(dbKey); } DBKeyProjectCompanyPredicate(String companyFilter, String projectFilter); }
DBKeyProjectCompanyPredicate implements Predicate<DBKey> { @Override public boolean apply(DBKey dbKey) { return companyMatches(dbKey) && projectMatches(dbKey); } DBKeyProjectCompanyPredicate(String companyFilter, String projectFilter); @Override boolean apply(DBKey dbKey); @Override String toString(); }
DBKeyProjectCompanyPredicate implements Predicate<DBKey> { @Override public boolean apply(DBKey dbKey) { return companyMatches(dbKey) && projectMatches(dbKey); } DBKeyProjectCompanyPredicate(String companyFilter, String projectFilter); @Override boolean apply(DBKey dbKey); @Override String toString();  }