diff options
author | Alain Béarez <abearez@apache.org> | 2020-01-05 23:54:09 +0000 |
---|---|---|
committer | Alain Béarez <abearez@apache.org> | 2020-01-05 23:54:09 +0000 |
commit | 21393fd08359b1cd33d6b9de2c03b2e55fd636e9 (patch) | |
tree | 09ec70ba7287ef441a919203452f36a4d37e7918 /src | |
parent | fbf12935d3d66ca08cdf14205cee06bac0a8f35d (diff) | |
download | poi-21393fd08359b1cd33d6b9de2c03b2e55fd636e9.tar.gz poi-21393fd08359b1cd33d6b9de2c03b2e55fd636e9.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFTable.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFTable.java b/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFTable.java index 5f626c3ac6..e0ca3c671b 100644 --- a/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFTable.java +++ b/src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFTable.java @@ -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); |