@Test public void testAuditCategoryAndMessage_OneAuditorFails() { Auditor auditor = new MultiProviderAuditor(Arrays.asList(new LoggingAuditor(), new ExceptionAuditor())); auditor.audit(PRINCIPAL, UNIT_TEST_EVENT); }
@Override public void audit(String principal, AuditEvent event) { audit(principal, event, null); }
MultiProviderAuditor implements Auditor { @Override public void audit(String principal, AuditEvent event) { audit(principal, event, null); } }
MultiProviderAuditor implements Auditor { @Override public void audit(String principal, AuditEvent event) { audit(principal, event, null); } @Inject  MultiProviderAuditor(@MultiproviderAuditors Collection<? extends Auditor> auditors); }
MultiProviderAuditor implements Auditor { @Override public void audit(String principal, AuditEvent event) { audit(principal, event, null); } @Inject  MultiProviderAuditor(@MultiproviderAuditors Collection<? extends Auditor> auditors); @Override void audit(String principal, AuditEvent event); @Override void audit(String principal, AuditEvent event, Collection<? extends AuditContext> contexts); }
MultiProviderAuditor implements Auditor { @Override public void audit(String principal, AuditEvent event) { audit(principal, event, null); } @Inject  MultiProviderAuditor(@MultiproviderAuditors Collection<? extends Auditor> auditors); @Override void audit(String principal, AuditEvent event); @Override void audit(String principal, AuditEvent event, Collection<? extends AuditContext> contexts);  }