@Test public void testCreateBoundValueSuppressorThrows() { AuditConfig config = givenAuditConfigWithBoundValueSuppressor("com.suppressor.InvalidSuppressorClass"); assertThatExceptionOfType(ConfigurationException.class) .isThrownBy(() -> AuditAdapterFactory.createAuditAdapter(config)) .withMessageContaining("Unable to find BoundValueSuppressor class") .withMessageContaining("com.suppressor.InvalidSuppressorClass"); }
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();   }