@Test public void testLoadSlf4jLogger() throws Exception { AuditConfig auditConfig = givenAuditConfig("com.ericsson.bss.cassandra.ecaudit.logger.Slf4jAuditLogger", Collections.emptyMap()); AuditAdapter adapter = AuditAdapterFactory.createAuditAdapter(auditConfig); Auditor auditor = auditorIn(adapter); assertThat(auditor).isInstanceOf(DefaultAuditor.class); DefaultAuditor defaultAuditor = (DefaultAuditor) auditor; assertThat(loggerIn(defaultAuditor)).isInstanceOf(Slf4jAuditLogger.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();   }