Search in sources :

Example 1 with PropertyName

use of org.whole.lang.properties.model.PropertyName in project whole by wholeplatform.

the class DescriptorsTest method testDataEntityDescriptorIndexOf.

@Test
public void testDataEntityDescriptorIndexOf() {
    PropertiesEntityFactory ef = PropertiesEntityFactory.instance;
    PropertyName e1 = ef.createPropertyName("pn1");
    EntityDescriptor<?> ed = e1.wGetEntityDescriptor();
    int i1 = ed.indexOf(CommonsFeatureDescriptorEnum.data_value);
    assertEquals(0, i1);
}
Also used : PropertyName(org.whole.lang.properties.model.PropertyName) PropertiesEntityFactory(org.whole.lang.properties.factories.PropertiesEntityFactory) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 PropertiesEntityFactory (org.whole.lang.properties.factories.PropertiesEntityFactory)1 PropertyName (org.whole.lang.properties.model.PropertyName)1