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);
}
Aggregations