RenderNode[] elementsByNodeType = MatchFactory.findElementsByNodeType(logicalPageBox, LayoutNodeTypes.TYPE_BOX_TABLE);
assertEquals(1, elementsByNodeType.length);
TableRenderBox table = (TableRenderBox) elementsByNodeType[0];
long width = table.getWidth();
DebugLog.log(width);
SeparateColumnModel columnModel = (SeparateColumnModel) table.getColumnModel();
long sum = 0;
final ArrayList<TableColumn> expected = new ArrayList<TableColumn>();
expected.add(createTableColumn(4748666, 4222000, 0, 0, 0));
expected.add(createTableColumn(4694666, 4168000, 0, 0, 0));
expected.add(createTableColumn(8415666, 7889000, 0, 0, 2824000));
expected.add(createTableColumn(8415666, 7889000, 0, 0, 0));
expected.add(createTableColumn(8415666, 7889000, 0, 0, 0));
expected.add(createTableColumn(8415666, 7889000, 0, 0, 0));
expected.add(createTableColumn(8415666, 7889000, 0, 0, 2824000));
expected.add(createTableColumn(8415666, 7889000, 0, 0, 0));
expected.add(createTableColumn(8415666, 7889000, 0, 0, 0));
expected.add(createTableColumn(8415666, 7889000, 0, 0, 0));
expected.add(createTableColumn(8415666, 7889000, 2824000, 0, 0));
expected.add(createTableColumn(8415666, 7889000, 0, 0, 0));
TableColumn[] columns = columnModel.getColumns();
for (int i = 0; i < columns.length; i += 1)
{
TableColumn c = columnModel.getColumn(i);
assertColumnsEqual(expected.get(i), c);
}
}