@Test public void testSetupDelegation() { combinedFilter.setup(); verify(yamlFilter, times(1)).setup(); verify(roleFilter, times(1)).setup(); }
@Override public void setup() { yamlFilter.setup(); roleFilter.setup(); }
YamlAndRoleAuditFilter implements AuditFilter { @Override public void setup() { yamlFilter.setup(); roleFilter.setup(); } }
YamlAndRoleAuditFilter implements AuditFilter { @Override public void setup() { yamlFilter.setup(); roleFilter.setup(); } YamlAndRoleAuditFilter(AuditConfig auditConfig); @VisibleForTesting  YamlAndRoleAuditFilter(YamlAuditFilter yamlFilter, RoleAuditFilter roleFilter); }
YamlAndRoleAuditFilter implements AuditFilter { @Override public void setup() { yamlFilter.setup(); roleFilter.setup(); } YamlAndRoleAuditFilter(AuditConfig auditConfig); @VisibleForTesting  YamlAndRoleAuditFilter(YamlAuditFilter yamlFilter, RoleAuditFilter roleFilter); @Override boolean isWhitelisted(AuditEntry logEntry); @Override void setup(); }
YamlAndRoleAuditFilter implements AuditFilter { @Override public void setup() { yamlFilter.setup(); roleFilter.setup(); } YamlAndRoleAuditFilter(AuditConfig auditConfig); @VisibleForTesting  YamlAndRoleAuditFilter(YamlAuditFilter yamlFilter, RoleAuditFilter roleFilter); @Override boolean isWhitelisted(AuditEntry logEntry); @Override void setup();  }