Collection<? extends MutationEngineFactory> findMutationEngines() { return ServiceLoader.load(MutationEngineFactory.class, this.loader); }
Collection<? extends MutationEngineFactory> findMutationEngines() { return ServiceLoader.load(MutationEngineFactory.class, this.loader); }
Collection<? extends TestPrioritiserFactory> findTestPrioritisers() { return ServiceLoader.load(TestPrioritiserFactory.class, this.loader); }
Collection<? extends TestPluginFactory> findTestFrameworkPlugins() { return ServiceLoader.load(TestPluginFactory.class, this.loader); }
Collection<? extends MutationGrouperFactory> findGroupers() { return ServiceLoader.load(MutationGrouperFactory.class, this.loader); }
Collection<? extends TestPluginFactory> findTestFrameworkPlugins() { return ServiceLoader.load(TestPluginFactory.class, this.loader); }
Collection<? extends MutationResultListenerFactory> findListeners() { return ServiceLoader.load(MutationResultListenerFactory.class, this.loader); }
private Collection<ClientClasspathPlugin> nullPlugins() { return ServiceLoader.load(ClientClasspathPlugin.class, this.loader); }
public Collection<? extends MutationInterceptorFactory> findInterceptors() { return ServiceLoader.load(MutationInterceptorFactory.class, this.loader); }
public static <S> Collection<S> load(final Class<S> ifc) { return load(ifc, Thread.currentThread().getContextClassLoader()); }
@Test public void shouldReturnNoValuesWhenNoServicesFounds() throws Exception { final Iterable<AService> actual = ServiceLoader.load(AService.class, Thread .currentThread().getContextClassLoader()); assertFalse(actual.iterator().hasNext()); }
@Test public void shouldReturnValueWhenServiceFound() throws Exception { final Iterable<MutationEngineFactory> actual = ServiceLoader.load( MutationEngineFactory.class, Thread.currentThread() .getContextClassLoader()); assertTrue(actual.iterator().hasNext()); }
Collection<? extends MutationEngineFactory> findMutationEngines() { return ServiceLoader.load(MutationEngineFactory.class, this.loader); }
Collection<? extends TestPluginFactory> findTestFrameworkPlugins() { return ServiceLoader.load(TestPluginFactory.class, this.loader); }
public static <S> Collection<S> load(final Class<S> ifc) { return load(ifc, Thread.currentThread().getContextClassLoader()); }