Search in sources :

Example 11 with DefaultExtensionLoadingContext

use of org.mule.runtime.extension.internal.loader.DefaultExtensionLoadingContext 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)11 ExtensionDeclarer (org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer)8 DefaultJavaModelLoaderDelegate (org.mule.runtime.module.extension.internal.loader.java.DefaultJavaModelLoaderDelegate)6 Before (org.junit.Before)5 Test (org.junit.Test)4 SmallTest (org.mule.tck.size.SmallTest)4 OperationDeclaration (org.mule.runtime.api.meta.model.declaration.fluent.OperationDeclaration)3 HeisenbergExtension (org.mule.test.heisenberg.extension.HeisenbergExtension)3 MetadataType (org.mule.metadata.api.model.MetadataType)2 ExtensionModelFactory (org.mule.runtime.extension.internal.loader.ExtensionModelFactory)2 ExtensionsTestUtils.toMetadataType (org.mule.test.module.extension.internal.util.ExtensionsTestUtils.toMetadataType)2 ExtensionModel (org.mule.runtime.api.meta.model.ExtensionModel)1 ExtensionLoadingContext (org.mule.runtime.extension.api.loader.ExtensionLoadingContext)1 TargetParameterDeclarationEnricher (org.mule.runtime.extension.internal.loader.enricher.TargetParameterDeclarationEnricher)1 NullDslResolvingContext (org.mule.runtime.internal.dsl.NullDslResolvingContext)1 ExtensionDescriptionsEnricher (org.mule.runtime.module.extension.internal.loader.enricher.ExtensionDescriptionsEnricher)1 ImplementingTypeModelProperty (org.mule.runtime.module.extension.internal.loader.java.property.ImplementingTypeModelProperty)1 IntegerAttributes (org.mule.test.heisenberg.extension.model.types.IntegerAttributes)1