Search in sources :

Example 1 with FooProperty2TestBean

use of org.kie.workbench.common.stunner.core.backend.definition.adapter.FooProperty2TestBean in project kie-wb-common by kiegroup.

the class BackendPropertyAdapterTest method testGetPropertyTypeFromAnnotation.

@Test
public void testGetPropertyTypeFromAnnotation() {
    final FooProperty2TestBean p = new FooProperty2TestBean(FOO1_VALUE);
    final PropertyType type = tested.getType(p);
    assertEquals(BooleanType.class, type.getClass());
}
Also used : FooProperty2TestBean(org.kie.workbench.common.stunner.core.backend.definition.adapter.FooProperty2TestBean) PropertyType(org.kie.workbench.common.stunner.core.definition.property.PropertyType) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 FooProperty2TestBean (org.kie.workbench.common.stunner.core.backend.definition.adapter.FooProperty2TestBean)1 PropertyType (org.kie.workbench.common.stunner.core.definition.property.PropertyType)1