use of org.mule.runtime.module.extension.api.loader.java.CraftedExtensionModelLoader in project mule by mulesoft.
the class CraftedExtensionModelLoaderTestCase method spiDiscoverable.
@Test
public void spiDiscoverable() throws Exception {
ServiceRegistry registry = new SpiServiceRegistry();
Optional<ExtensionModelLoader> craftedLoader = registry.lookupProviders(ExtensionModelLoader.class, classLoader).stream().filter(p -> p instanceof CraftedExtensionModelLoader).findAny();
assertThat(craftedLoader.isPresent(), is(true));
}
Aggregations