Search in sources :

Example 1 with StringTypeBuilder

use of org.mule.metadata.api.builder.StringTypeBuilder in project mule by mulesoft.

the class IntrospectionUtilsTestCase method getDataTypeFromString.

@Test
public void getDataTypeFromString() {
    StringTypeBuilder typeBuilder = BaseTypeBuilder.create(JAVA).stringType();
    DataType dataType = toDataType(typeBuilder.build());
    assertThat(dataType.getType(), is(equalTo(String.class)));
}
Also used : StringTypeBuilder(org.mule.metadata.api.builder.StringTypeBuilder) MapDataType(org.mule.runtime.api.metadata.MapDataType) IntrospectionUtils.toDataType(org.mule.runtime.module.extension.internal.util.IntrospectionUtils.toDataType) DataType(org.mule.runtime.api.metadata.DataType) CollectionDataType(org.mule.runtime.api.metadata.CollectionDataType) SmallTest(org.mule.tck.size.SmallTest) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 StringTypeBuilder (org.mule.metadata.api.builder.StringTypeBuilder)1 CollectionDataType (org.mule.runtime.api.metadata.CollectionDataType)1 DataType (org.mule.runtime.api.metadata.DataType)1 MapDataType (org.mule.runtime.api.metadata.MapDataType)1 IntrospectionUtils.toDataType (org.mule.runtime.module.extension.internal.util.IntrospectionUtils.toDataType)1 SmallTest (org.mule.tck.size.SmallTest)1