use of org.mule.test.heisenberg.extension.stereotypes.EmpireStereotype in project mule by mulesoft.
the class DefaultExtensionModelFactoryTestCase method customStereotype.
@Test
public void customStereotype() {
ExtensionModel extensionModel = createExtension(HeisenbergExtension.class);
OperationModel operation = extensionModel.getConfigurationModels().get(0).getOperationModel("callSaul").get();
StereotypeModel stereotypeModel = operation.getStereotype();
assertThat(stereotypeModel.isAssignableTo(PROCESSOR), is(true));
assertThat(stereotypeModel.getType(), is(new EmpireStereotype().getName().toUpperCase()));
assertThat(stereotypeModel.getNamespace(), is(HEISENBERG.toUpperCase()));
assertThat(stereotypeModel.getParent().get(), is(PROCESSOR));
}
Aggregations