@Test public void testLoadDefaultWithoutErrorHasExpectedType() throws Exception { AuditAdapter adapter = AuditAdapterFactory.createAuditAdapter(); Auditor auditor = auditorIn(adapter); assertThat(auditor).isInstanceOf(DefaultAuditor.class); DefaultAuditor defaultAuditor = (DefaultAuditor) auditor; assertThat(loggerIn(defaultAuditor)).isInstanceOf(Slf4jAuditLogger.class); assertThat(filterIn(defaultAuditor)).isInstanceOf(RoleAuditFilter.class); assertThat(obfuscatorIn(defaultAuditor)).isInstanceOf(PasswordObfuscator.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();   }