use of org.mule.runtime.api.meta.model.operation.OperationModel in project mule by mulesoft.
the class MetadataOperationTestCase method getContentMetadataWithoutRequiredKeyId.
@Test
public void getContentMetadataWithoutRequiredKeyId() throws Exception {
location = Location.builder().globalName(CONTENT_METADATA_WITH_KEY_ID).addProcessorsPart().addIndexPart(0).build();
final ComponentMetadataDescriptor<OperationModel> metadataDescriptor = getSuccessComponentDynamicMetadata(PERSON_METADATA_KEY);
final OperationModel typedModel = metadataDescriptor.getModel();
assertExpectedOutput(typedModel, typeBuilder.anyType().build(), void.class);
assertExpectedType(getParameter(typedModel, "type"), String.class);
assertExpectedType(getParameter(typedModel, "content"), personType, true);
}
Aggregations