]> source.dussan.org Git - poi.git/commitdiff
Add a few more test asserts
authorNick Burch <nick@apache.org>
Thu, 16 Sep 2010 13:45:54 +0000 (13:45 +0000)
committerNick Burch <nick@apache.org>
Thu, 16 Sep 2010 13:45:54 +0000 (13:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@997751 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java

index 7e3857caebaff3f7f7ce687738c811edc37c5b59..3ca917514f019a52dfe26b0ba3744e1b0cea5463 100644 (file)
@@ -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