use of io.cucumber.core.backend.BackendProviderService in project cucumber-jvm by cucumber.
the class BackendServiceLoader method loadBackends.
private Collection<? extends Backend> loadBackends(Iterable<BackendProviderService> serviceLoader) {
List<Backend> backends = new ArrayList<>();
for (BackendProviderService backendProviderService : serviceLoader) {
ObjectFactory objectFactory = objectFactorySupplier.get();
backends.add(backendProviderService.create(objectFactory, objectFactory, classLoaderSupplier));
}
return backends;
}
use of io.cucumber.core.backend.BackendProviderService in project cucumber-jvm by cucumber.
the class GuiceBackendTest method backend_service_creates_backend.
@Test
void backend_service_creates_backend() {
BackendProviderService backendProviderService = new GuiceBackendProviderService();
assertThat(backendProviderService.create(factory, factory, classLoader), is(notNullValue()));
}
Aggregations