Search in sources :

Example 11 with DefaultMetadataResolverFactory

use of org.mule.runtime.core.internal.metadata.DefaultMetadataResolverFactory in project mule by mulesoft.

the class MetadataComponentModelValidatorTestCase method metadataResolverWithEmptyResolverName.

@Test
public void metadataResolverWithEmptyResolverName() {
    exception.expect(IllegalModelDefinitionException.class);
    exception.expectMessage(containsString("which has an empty resolver name"));
    mockMetadataResolverFactory(sourceModel, new DefaultMetadataResolverFactory(NULL_RESOLVER_SUPPLIER, emptyMap(), ResolverSupplier.of(EmptyResolverName.class), NULL_RESOLVER_SUPPLIER));
    validate(extensionModel, validator);
}
Also used : DefaultMetadataResolverFactory(org.mule.runtime.core.internal.metadata.DefaultMetadataResolverFactory) SmallTest(org.mule.tck.size.SmallTest) Test(org.junit.Test)

Aggregations

DefaultMetadataResolverFactory (org.mule.runtime.core.internal.metadata.DefaultMetadataResolverFactory)11 Test (org.junit.Test)10 SmallTest (org.mule.tck.size.SmallTest)10 ImmutableOutputModel (org.mule.runtime.extension.api.model.ImmutableOutputModel)5 Supplier (java.util.function.Supplier)2 InputTypeResolver (org.mule.runtime.api.metadata.resolving.InputTypeResolver)2 ImmutableMap (com.google.common.collect.ImmutableMap)1 HashedMap (org.apache.commons.collections.map.HashedMap)1 StringContains.containsString (org.hamcrest.core.StringContains.containsString)1 ParameterModel (org.mule.runtime.api.meta.model.parameter.ParameterModel)1 NullMetadataResolverSupplier (org.mule.runtime.core.internal.metadata.NullMetadataResolverSupplier)1 NullMetadataResolver (org.mule.runtime.extension.api.metadata.NullMetadataResolver)1 MetadataKeyIdModelProperty (org.mule.runtime.extension.api.property.MetadataKeyIdModelProperty)1 MetadataResolverFactoryModelProperty (org.mule.runtime.module.extension.internal.loader.java.property.MetadataResolverFactoryModelProperty)1 ResolverSupplier (org.mule.runtime.module.extension.internal.metadata.ResolverSupplier)1 InvokeInputAttachmentsTypeResolver (org.mule.runtime.module.extension.soap.internal.metadata.InvokeInputAttachmentsTypeResolver)1 InvokeInputHeadersTypeResolver (org.mule.runtime.module.extension.soap.internal.metadata.InvokeInputHeadersTypeResolver)1 InvokeKeysResolver (org.mule.runtime.module.extension.soap.internal.metadata.InvokeKeysResolver)1 InvokeOutputTypeResolver (org.mule.runtime.module.extension.soap.internal.metadata.InvokeOutputTypeResolver)1 InvokeRequestTypeResolver (org.mule.runtime.module.extension.soap.internal.metadata.InvokeRequestTypeResolver)1