From eea61bfe5d908c01c6fefc521ea880c2b5e5b905 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 16 Sep 2010 13:45:54 +0000 Subject: [PATCH] Add a few more test asserts git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@997751 13f79535-47bb-0310-9956-ffa450edef68 --- .../testcases/org/apache/poi/hwpf/usermodel/TestProblems.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java index 7e3857caeb..3ca917514f 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java @@ -305,6 +305,7 @@ public final class TestProblems extends HWPFTestCase { assertEquals(0, cell.getStartOffset()); assertEquals(13, cell.getEndOffset()); assertEquals("Row 1/Cell 1\u0007", cell.text()); + assertEquals("Row 1/Cell 1\u0007", cell.getParagraph(0).text()); cell = row.getCell(1); assertEquals(1, cell.numParagraphs()); @@ -313,6 +314,7 @@ public final class TestProblems extends HWPFTestCase { assertEquals(13, cell.getStartOffset()); assertEquals(26, cell.getEndOffset()); assertEquals("Row 1/Cell 2\u0007", cell.text()); + assertEquals("Row 1/Cell 2\u0007", cell.getParagraph(0).text()); cell = row.getCell(2); assertEquals(1, cell.numParagraphs()); @@ -321,6 +323,7 @@ public final class TestProblems extends HWPFTestCase { assertEquals(26, cell.getStartOffset()); assertEquals(39, cell.getEndOffset()); assertEquals("Row 1/Cell 3\u0007", cell.text()); + assertEquals("Row 1/Cell 3\u0007", cell.getParagraph(0).text()); // Onto row #2 -- 2.39.5