@Test public void testFilteredByBothResultInFiltered() { when(yamlFilter.isWhitelisted(eq(auditEntry))).thenReturn(true); assertThat(combinedFilter.isWhitelisted(auditEntry)).isEqualTo(true); }
@Override public boolean isWhitelisted(AuditEntry logEntry) { return yamlFilter.isWhitelisted(logEntry) || roleFilter.isWhitelisted(logEntry); }
YamlAndRoleAuditFilter implements AuditFilter { @Override public boolean isWhitelisted(AuditEntry logEntry) { return yamlFilter.isWhitelisted(logEntry) || roleFilter.isWhitelisted(logEntry); } }
YamlAndRoleAuditFilter implements AuditFilter { @Override public boolean isWhitelisted(AuditEntry logEntry) { return yamlFilter.isWhitelisted(logEntry) || roleFilter.isWhitelisted(logEntry); } YamlAndRoleAuditFilter(AuditConfig auditConfig); @VisibleForTesting  YamlAndRoleAuditFilter(YamlAuditFilter yamlFilter, RoleAuditFilter roleFilter); }
YamlAndRoleAuditFilter implements AuditFilter { @Override public boolean isWhitelisted(AuditEntry logEntry) { return yamlFilter.isWhitelisted(logEntry) || roleFilter.isWhitelisted(logEntry); } YamlAndRoleAuditFilter(AuditConfig auditConfig); @VisibleForTesting  YamlAndRoleAuditFilter(YamlAuditFilter yamlFilter, RoleAuditFilter roleFilter); @Override boolean isWhitelisted(AuditEntry logEntry); @Override void setup(); }
YamlAndRoleAuditFilter implements AuditFilter { @Override public boolean isWhitelisted(AuditEntry logEntry) { return yamlFilter.isWhitelisted(logEntry) || roleFilter.isWhitelisted(logEntry); } YamlAndRoleAuditFilter(AuditConfig auditConfig); @VisibleForTesting  YamlAndRoleAuditFilter(YamlAuditFilter yamlFilter, RoleAuditFilter roleFilter); @Override boolean isWhitelisted(AuditEntry logEntry); @Override void setup();  }