use of org.eclipse.scout.rt.ui.html.json.table.fixtures.TableWithStringColumn in project scout.rt by eclipse.
the class JsonCellToJsonTest method testStringColumn.
/**
* Don't generate a cell object if text is the only property.
*/
@Test
public void testStringColumn() throws JSONException {
TableWithStringColumn table = new TableWithStringColumn();
table.initTable();
ITableRow row = table.addRow(table.createRow());
table.getColumn().setValue(row, "A string");
JsonTable<ITable> jsonTable = UiSessionTestUtility.newJsonAdapter(m_uiSession, table, null);
Object jsonObj = jsonTable.cellToJson(row, table.getColumn());
assertTrue(jsonObj instanceof String);
}
Aggregations