Search in sources :

Example 6 with DefaultJavaModelLoaderDelegate

use of org.mule.runtime.module.extension.internal.loader.java.DefaultJavaModelLoaderDelegate in project mule by mulesoft.

the class TargetParameterDeclarationEnricherTestCase method setUp.

@Before
public void setUp() {
    ExtensionDeclarer declarer = new DefaultJavaModelLoaderDelegate(HeisenbergExtension.class, getProductVersion()).declare(new DefaultExtensionLoadingContext(getClass().getClassLoader(), getDefault(emptySet())));
    new TargetParameterDeclarationEnricher().enrich(new DefaultExtensionLoadingContext(declarer, this.getClass().getClassLoader(), getDefault(emptySet())));
    declaration = declarer.getDeclaration();
}
Also used : DefaultExtensionLoadingContext(org.mule.runtime.extension.internal.loader.DefaultExtensionLoadingContext) ExtensionDeclarer(org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer) DefaultJavaModelLoaderDelegate(org.mule.runtime.module.extension.internal.loader.java.DefaultJavaModelLoaderDelegate) HeisenbergExtension(org.mule.test.heisenberg.extension.HeisenbergExtension) TargetParameterDeclarationEnricher(org.mule.runtime.extension.internal.loader.enricher.TargetParameterDeclarationEnricher) Before(org.junit.Before)

Aggregations

DefaultExtensionLoadingContext (org.mule.runtime.extension.internal.loader.DefaultExtensionLoadingContext)6 DefaultJavaModelLoaderDelegate (org.mule.runtime.module.extension.internal.loader.java.DefaultJavaModelLoaderDelegate)6 Before (org.junit.Before)5 ExtensionDeclarer (org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer)4 HeisenbergExtension (org.mule.test.heisenberg.extension.HeisenbergExtension)3 Test (org.junit.Test)1 ExtensionModel (org.mule.runtime.api.meta.model.ExtensionModel)1 ExtensionLoadingContext (org.mule.runtime.extension.api.loader.ExtensionLoadingContext)1 ExtensionModelFactory (org.mule.runtime.extension.internal.loader.ExtensionModelFactory)1 TargetParameterDeclarationEnricher (org.mule.runtime.extension.internal.loader.enricher.TargetParameterDeclarationEnricher)1 ExtensionDescriptionsEnricher (org.mule.runtime.module.extension.internal.loader.enricher.ExtensionDescriptionsEnricher)1 SmallTest (org.mule.tck.size.SmallTest)1