@Test public void testAudit_NullEvent_AssertExeption() { Auditor auditor = new MultiProviderAuditor(Arrays.asList(new LoggingAuditor(), new NoOpAuditor())); boolean exceptionOccured = false; try { auditor.audit(PRINCIPAL, null); } catch (IllegalArgumentException e) { exceptionOccured = true; } assertTrue(exceptionOccured); }
@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);  }