use of org.eclipse.scout.rt.client.ui.basic.table.ColumnMandatoryTest.MandatoryTestTable.NonMandatoryTestColumn in project scout.rt by eclipse.
the class ColumnMandatoryTest method testSettingProperty.
/**
* Tests setting the mandatory property
*/
@Test
public void testSettingProperty() {
MandatoryTestTable testTable = new MandatoryTestTable();
final NonMandatoryTestColumn column = testTable.getNonMandatoryTestColumn();
column.setMandatory(true);
testTable.addRowByArray(getEmptyTestRow());
final Cell cell = (Cell) testTable.getCell(0, 0);
assertFalse(cell.isContentValid());
assertTrue(column.isMandatory());
}
Aggregations