use of org.mule.runtime.core.internal.processor.AbstractProcessor in project mule by mulesoft.
the class ObjectTypeVisitorTestCase method typeIsInstanceOfClassInheritedFromCheckedClassFromAttribute.
@Test
public void typeIsInstanceOfClassInheritedFromCheckedClassFromAttribute() throws ClassNotFoundException {
ComponentModel componentModel = new SpringComponentModel();
componentModel.setParameter("type", "org.mule.runtime.core.internal.processor.ReferenceProcessor");
ObjectTypeVisitor visitor = new ObjectTypeVisitor(componentModel);
// Check that ReferenceProcessor inherits from AbstractProcessor
TypeDefinition typeDefinition = fromConfigurationAttribute("type").checkingThatIsClassOrInheritsFrom(AbstractProcessor.class);
typeDefinition.visit(visitor);
assertTrue(AbstractProcessor.class.isAssignableFrom(visitor.getType()));
}
Aggregations