Search in sources :

Example 1 with TargetParameterDeclarationEnricher

use of org.mule.runtime.extension.internal.loader.enricher.TargetParameterDeclarationEnricher 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

Before (org.junit.Before)1 ExtensionDeclarer (org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer)1 DefaultExtensionLoadingContext (org.mule.runtime.extension.internal.loader.DefaultExtensionLoadingContext)1 TargetParameterDeclarationEnricher (org.mule.runtime.extension.internal.loader.enricher.TargetParameterDeclarationEnricher)1 DefaultJavaModelLoaderDelegate (org.mule.runtime.module.extension.internal.loader.java.DefaultJavaModelLoaderDelegate)1 HeisenbergExtension (org.mule.test.heisenberg.extension.HeisenbergExtension)1