@Test public void testLoadInvalidLogger() { AuditConfig auditConfig = givenAuditConfig("no.working.InvalidAuditLogger", Collections.emptyMap()); assertThatExceptionOfType(ConfigurationException.class) .isThrownBy(() -> AuditAdapterFactory.createAuditAdapter(auditConfig)) .withMessageContaining("Failed to initialize audit logger backend") .withMessageContaining("InvalidAuditLogger"); }
static AuditAdapter createAuditAdapter() { return createAuditAdapter(AuditConfig.getInstance()); }
AuditAdapterFactory { static AuditAdapter createAuditAdapter() { return createAuditAdapter(AuditConfig.getInstance()); } }
AuditAdapterFactory { static AuditAdapter createAuditAdapter() { return createAuditAdapter(AuditConfig.getInstance()); } private  AuditAdapterFactory(); }
AuditAdapterFactory { static AuditAdapter createAuditAdapter() { return createAuditAdapter(AuditConfig.getInstance()); } private  AuditAdapterFactory();  }
AuditAdapterFactory { static AuditAdapter createAuditAdapter() { return createAuditAdapter(AuditConfig.getInstance()); } private  AuditAdapterFactory();   }