git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1846492 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2018-11-13 08:37:11 +00:00
parent f006c8ee6b
commit 0e5c563ccf
1 changed files with 2 additions and 0 deletions

View File

@ -358,6 +358,7 @@ public final class TestXSSFTable {
new CellReference(0, 0), new CellReference(2, 2)); new CellReference(0, 0), new CellReference(2, 2));
XSSFTable table1 = sheet.createTable(reference1); XSSFTable table1 = sheet.createTable(reference1);
assertEquals("A1:C3", table1.getCTTable().getRef());
assertEquals(1, table1.getCTTable().getTableColumns().getTableColumnArray(0).getId()); assertEquals(1, table1.getCTTable().getTableColumns().getTableColumnArray(0).getId());
assertEquals(2, table1.getCTTable().getTableColumns().getTableColumnArray(1).getId()); assertEquals(2, table1.getCTTable().getTableColumns().getTableColumnArray(1).getId());
@ -369,6 +370,7 @@ public final class TestXSSFTable {
new CellReference(10, 10), new CellReference(12, 12)); new CellReference(10, 10), new CellReference(12, 12));
XSSFTable table2 = sheet.createTable(reference2); XSSFTable table2 = sheet.createTable(reference2);
assertEquals("K11:M13", table2.getCTTable().getRef());
// these IDs dupplicate those from table1 and may be cause of https://bz.apache.org/bugzilla/show_bug.cgi?id=62906 // these IDs dupplicate those from table1 and may be cause of https://bz.apache.org/bugzilla/show_bug.cgi?id=62906
assertEquals(1, table2.getCTTable().getTableColumns().getTableColumnArray(0).getId()); assertEquals(1, table2.getCTTable().getTableColumns().getTableColumnArray(0).getId());