use of org.mule.test.runner.api.PluginUrlClassification in project mule by mulesoft.
the class PluginLookPolicyFactoryTestCase method lookupPoliciesForPluginThatDoesNotDeclareDependency.
@Test
public void lookupPoliciesForPluginThatDoesNotDeclareDependency() {
PluginUrlClassification barPluginClassification = new PluginUrlClassification(BAR_PLUGIN_ID, emptyList(), emptyList(), emptyList());
List<PluginUrlClassification> pluginClassifications = newArrayList(barPluginClassification, fooPluginClassification);
ClassLoaderLookupPolicy parentLookupPolicies = getParentClassLoaderLookupPolicy();
ClassLoaderLookupPolicy pluginPolicy = factory.createLookupPolicy(barPluginClassification, pluginClassifications, parentLookupPolicies, null);
assertThat(pluginPolicy.getClassLookupStrategy(FOO_PACKAGE), is(nullValue()));
}
Aggregations