Search in sources :

Example 1 with NonMandatoryTestColumn

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());
}
Also used : NonMandatoryTestColumn(org.eclipse.scout.rt.client.ui.basic.table.ColumnMandatoryTest.MandatoryTestTable.NonMandatoryTestColumn) Cell(org.eclipse.scout.rt.client.ui.basic.cell.Cell) Test(org.junit.Test)

Aggregations

Cell (org.eclipse.scout.rt.client.ui.basic.cell.Cell)1 NonMandatoryTestColumn (org.eclipse.scout.rt.client.ui.basic.table.ColumnMandatoryTest.MandatoryTestTable.NonMandatoryTestColumn)1 Test (org.junit.Test)1