use of org.mule.runtime.api.meta.model.operation.OperationModel in project mule by mulesoft.
the class ExtensionWithCustomStaticTypesTestCase method withInputXmlStaticType.
@Test
public void withInputXmlStaticType() throws Exception {
OperationModel o = getOperation("xmlInput");
ParameterModel param = o.getAllParameterModels().get(0);
assertXmlOrder(param);
}
use of org.mule.runtime.api.meta.model.operation.OperationModel in project mule by mulesoft.
the class ExtensionWithCustomStaticTypesTestCase method withInputJsonType.
@Test
public void withInputJsonType() throws Exception {
OperationModel o = getOperation("jsonInputStream");
ParameterModel param = o.getAllParameterModels().get(0);
assertJsonPerson(param);
}
use of org.mule.runtime.api.meta.model.operation.OperationModel in project mule by mulesoft.
the class ExtensionWithCustomStaticTypesTestCase method customTypeInput.
@Test
public void customTypeInput() throws Exception {
OperationModel o = getOperation("customTypeInput");
ParameterModel param = o.getAllParameterModels().get(0);
assertCustomJsonType(param);
}
use of org.mule.runtime.api.meta.model.operation.OperationModel in project mule by mulesoft.
the class ExtensionWithCustomStaticTypesTestCase method customTypeOutput.
@Test
public void customTypeOutput() throws Exception {
OperationModel o = getOperation("customTypeOutput");
OutputModel output = o.getOutput();
MetadataType type = output.getType();
assertThat(output.hasDynamicType(), is(false));
assertThat(type.getMetadataFormat(), is(CSV));
assertThat(type.toString(), is("csv-object"));
}
use of org.mule.runtime.api.meta.model.operation.OperationModel in project mule by mulesoft.
the class ExtensionWithCustomStaticTypesTestCase method withOutputAttributesXmlStaticType.
@Test
public void withOutputAttributesXmlStaticType() throws Exception {
OperationModel o = getOperation("xmlAttributes");
assertXmlOrder(o.getOutputAttributes());
}
Aggregations