Search in sources :

Example 1 with BooleanType

use of org.kie.workbench.common.stunner.core.definition.property.type.BooleanType in project kie-wb-common by kiegroup.

the class ClientBindablePropertyAdapterTest method testDefaultTypes.

@Test
public void testDefaultTypes() {
    types.put(Foo.class, new StringType());
    types.put(Bar.class, new BooleanType());
    final PropertyType fooType = clientBindablePropertyAdapter.getType(new Foo());
    final PropertyType barType = clientBindablePropertyAdapter.getType(new Bar());
    assertEquals(StringType.class, fooType.getClass());
    assertEquals(BooleanType.class, barType.getClass());
}
Also used : StringType(org.kie.workbench.common.stunner.core.definition.property.type.StringType) BooleanType(org.kie.workbench.common.stunner.core.definition.property.type.BooleanType) PropertyType(org.kie.workbench.common.stunner.core.definition.property.PropertyType) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 PropertyType (org.kie.workbench.common.stunner.core.definition.property.PropertyType)1 BooleanType (org.kie.workbench.common.stunner.core.definition.property.type.BooleanType)1 StringType (org.kie.workbench.common.stunner.core.definition.property.type.StringType)1