use of org.mule.test.typed.value.extension.extension.TypedValueExtension in project mule by mulesoft.
the class TypedValueParameterOnConfigTestCase method typedValueOnStaticConfig.
@Test
public void typedValueOnStaticConfig() throws Exception {
TypedValueExtension extension = (TypedValueExtension) flowRunner("typedValueOnStaticConfig").run().getMessage().getPayload().getValue();
assertTypedValue(extension.getStringTypedValue(), "string", MediaType.ANY, null);
assertTypedValue(extension.getDifferedDoor().getAddress(), "address", MediaType.ANY, null);
}
use of org.mule.test.typed.value.extension.extension.TypedValueExtension in project mule by mulesoft.
the class TypedValueParameterOnConfigTestCase method typedValueOnDynamicConfig.
@Test
public void typedValueOnDynamicConfig() throws Exception {
TypedValueExtension extension = (TypedValueExtension) flowRunner("typedValueOnDynamicConfig").run().getMessage().getPayload().getValue();
assertTypedValue(extension.getStringTypedValue(), "JsonStringElement", MediaType.ANY, null);
assertTypedValue(extension.getDifferedDoor().getAddress(), "address", MediaType.ANY, null);
}
Aggregations