@Test public void testLoadNoFilterWithoutErrorHasExpectedType() throws Exception { System.setProperty(AuditAdapterFactory.FILTER_TYPE_PROPERTY_NAME, AuditAdapterFactory.FILTER_TYPE_NONE); AuditAdapter adapter = AuditAdapterFactory.createAuditAdapter(); Auditor auditor = auditorIn(adapter); assertThat(auditor).isInstanceOf(DefaultAuditor.class); DefaultAuditor defaultAuditor = (DefaultAuditor) auditor; assertThat(filterIn(defaultAuditor)).isInstanceOf(DefaultAuditFilter.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();   }