]> source.dussan.org Git - poi.git/commitdiff
Complete test with cell in newly added column
authorAlain Béarez <abearez@apache.org>
Sun, 5 Jan 2020 23:54:09 +0000 (23:54 +0000)
committerAlain Béarez <abearez@apache.org>
Sun, 5 Jan 2020 23:54:09 +0000 (23:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872362 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFTable.java

index 5f626c3ac6e52d000b4a23bc6fb3af3a6638cc95..e0ca3c671bb81b62251781a5dd928c6a51856134 100644 (file)
@@ -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);