mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Complete test with cell in newly added column
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872362 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fbf12935d3
commit
21393fd083
@ -72,7 +72,9 @@ public class TestXSLFTable {
|
||||
assertEquals(tab.getColumnWidth(1), tab.getColumnWidth(0), 0.00001);
|
||||
assertNotNull(tab.getCell(0, 0).getTextBody());
|
||||
tab.addColumn();
|
||||
tab.getCell(0, data[0].length + 1);
|
||||
XSLFTableCell cell = tab.getCell(0, data[0].length + 1);
|
||||
assertEquals(1, cell.getTextBody().getParagraphs().size());
|
||||
assertEquals("", cell.getTextBody().getParagraph(0).getText());
|
||||
assertEquals(tab.getColumnWidth(tab.getNumberOfColumns() - 2), tab.getColumnWidth(tab.getNumberOfColumns() - 1), 0.00001);
|
||||
assertNotNull(tab.getCell(0, tab.getNumberOfColumns() - 1).getTextBody());
|
||||
tab.removeColumn(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user