@Test public void testLoadChronicleLoggerWithoutMandatoryParameters() { AuditConfig auditConfig = givenAuditConfig("com.ericsson.bss.cassandra.ecaudit.logger.ChronicleAuditLogger", Collections.emptyMap()); assertThatExceptionOfType(ConfigurationException.class) .isThrownBy(() -> AuditAdapterFactory.createAuditAdapter(auditConfig)) .withMessageContaining("Audit logger backend failed at initialization") .withMessageContaining("log_dir"); }
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();   }