use of org.mule.runtime.api.service.ServiceProvider in project mule by mulesoft.
the class ReflectionServiceResolverTestCase method createFooServiceProvider.
private Pair<ArtifactClassLoader, ServiceProvider> createFooServiceProvider(FooService fooService) {
ServiceProvider fooServiceProvider = mock(ServiceProvider.class);
final List<ServiceDefinition> fooServices = new ArrayList<>();
fooServices.add(new ServiceDefinition(FooService.class, fooService));
when(fooServiceProvider.providedServices()).thenReturn(fooServices);
return new Pair<>(fooServiceClassLoader, fooServiceProvider);
}
Aggregations