" public Test() {",
" }",
"}");
refresh();
// add new CellTable
CellTableInfo cellTable;
{
cellTable = createJavaInfo("com.google.gwt.user.cellview.client.CellTable");
cellTable.putTemplateArgument("rowType", "test.client.User");
flowContainer_CREATE(panel, cellTable, null);
}
assertEditor(
"// filler filler filler filler filler",
"public class Test extends FlowPanel {",
" public Test() {",
" {",
" CellTable<User> cellTable = new CellTable<User>();",
" add(cellTable);",
" }",
" }",
"}");
assertThat(cellTable.getColumns()).isEmpty();
// add new Column
{
ColumnInfo column = createJavaInfo("com.google.gwt.user.cellview.client.Column");
flowContainer_CREATE(cellTable, column, null);
assertThat(cellTable.getColumns()).containsExactly(column);
}
assertEditor(
"// filler filler filler filler filler",
"public class Test extends FlowPanel {",
" public Test() {",