Search in sources :

Example 1 with IsolatedServiceProviderDiscoverer

use of org.mule.test.runner.api.IsolatedServiceProviderDiscoverer in project mule by mulesoft.

the class ArtifactFunctionalTestCase method createServiceManager.

private static void createServiceManager() {
    serviceRepository = ServiceManager.create(ServiceDiscoverer.create(new IsolatedServiceProviderDiscoverer(serviceClassLoaders)));
    try {
        serviceRepository.start();
    } catch (MuleException e) {
        throw new IllegalStateException("Couldn't start service manager", e);
    }
    serviceConfigurator = new TestServicesMuleContextConfigurator(serviceRepository);
}
Also used : IsolatedServiceProviderDiscoverer(org.mule.test.runner.api.IsolatedServiceProviderDiscoverer) MuleException(org.mule.runtime.api.exception.MuleException)

Aggregations

MuleException (org.mule.runtime.api.exception.MuleException)1 IsolatedServiceProviderDiscoverer (org.mule.test.runner.api.IsolatedServiceProviderDiscoverer)1