@Test public void testCreateAuditor_NullProvider_AssertException() throws Exception { boolean exeptionOccured = false; try { AuditorFactory.createAuditor((Provider<Auditor>)null); } catch (IllegalArgumentException e) { exeptionOccured = true; } assertTrue(exeptionOccured); }
public static synchronized Auditor createAuditor() { final SPIAuditorProvider spiProv = new SPIAuditorProvider(); final Provider<Auditor> provider = spiProv.isImplementationAvailable() ? spiProv : new LoggingAuditorProvider(); return createAuditor(provider); }
AuditorFactory { public static synchronized Auditor createAuditor() { final SPIAuditorProvider spiProv = new SPIAuditorProvider(); final Provider<Auditor> provider = spiProv.isImplementationAvailable() ? spiProv : new LoggingAuditorProvider(); return createAuditor(provider); } }
AuditorFactory { public static synchronized Auditor createAuditor() { final SPIAuditorProvider spiProv = new SPIAuditorProvider(); final Provider<Auditor> provider = spiProv.isImplementationAvailable() ? spiProv : new LoggingAuditorProvider(); return createAuditor(provider); }  }
AuditorFactory { public static synchronized Auditor createAuditor() { final SPIAuditorProvider spiProv = new SPIAuditorProvider(); final Provider<Auditor> provider = spiProv.isImplementationAvailable() ? spiProv : new LoggingAuditorProvider(); return createAuditor(provider); }  static synchronized Auditor createAuditor(); static synchronized Auditor createAuditor(Provider<Auditor> provider); static synchronized Auditor createAuditor(Collection<Module> modules); }
AuditorFactory { public static synchronized Auditor createAuditor() { final SPIAuditorProvider spiProv = new SPIAuditorProvider(); final Provider<Auditor> provider = spiProv.isImplementationAvailable() ? spiProv : new LoggingAuditorProvider(); return createAuditor(provider); }  static synchronized Auditor createAuditor(); static synchronized Auditor createAuditor(Provider<Auditor> provider); static synchronized Auditor createAuditor(Collection<Module> modules);  }