@Test public void testLoadChronicleLogger() throws Exception { File tempDir = Files.createTempDir(); tempDir.deleteOnExit(); AuditConfig auditConfig = givenAuditConfig("com.ericsson.bss.cassandra.ecaudit.logger.ChronicleAuditLogger", ImmutableMap.of("log_dir", tempDir.getPath())); AuditAdapter adapter = AuditAdapterFactory.createAuditAdapter(auditConfig); Auditor auditor = auditorIn(adapter); assertThat(auditor).isInstanceOf(DefaultAuditor.class); DefaultAuditor defaultAuditor = (DefaultAuditor) auditor; assertThat(loggerIn(defaultAuditor)).isInstanceOf(ChronicleAuditLogger.class); }
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();   }