Search in sources :

Example 1 with TypedValueExtension

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);
}
Also used : TypedValueExtension(org.mule.test.typed.value.extension.extension.TypedValueExtension) Test(org.junit.Test)

Example 2 with TypedValueExtension

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);
}
Also used : TypedValueExtension(org.mule.test.typed.value.extension.extension.TypedValueExtension) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 TypedValueExtension (org.mule.test.typed.value.extension.extension.TypedValueExtension)2