use of org.eclipse.scout.rt.shared.data.form.fields.tablefield.TableRowDataPropertyFilter in project scout.rt by eclipse.
the class TableRowDataPropertyFilterTest method testTableRowDataPropertyFilter.
@Test
public void testTableRowDataPropertyFilter() throws Exception {
TableRowDataPropertyFilter propertyFilter = new TableRowDataPropertyFilter();
FastPropertyDescriptor[] props = BeanUtility.getFastPropertyDescriptors(P_TableRowData.class, AbstractTableRowData.class, propertyFilter);
Map<String, FastPropertyDescriptor> propertyDescriptorsByName = new HashMap<String, FastPropertyDescriptor>();
for (FastPropertyDescriptor prop : props) {
propertyDescriptorsByName.put(prop.getName(), prop);
}
assertEquals(3, propertyDescriptorsByName.size());
assertTrue(propertyDescriptorsByName.containsKey("intColumn"));
assertTrue(propertyDescriptorsByName.containsKey("booleanColumn"));
assertTrue(propertyDescriptorsByName.containsKey("objectColumn"));
}
Aggregations