From 21393fd08359b1cd33d6b9de2c03b2e55fd636e9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alain=20B=C3=A9arez?= Date: Sun, 5 Jan 2020 23:54:09 +0000 Subject: [PATCH] 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 --- .../org/apache/poi/xslf/usermodel/TestXSLFTable.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.5