poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r997751 - /poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java
Date Thu, 16 Sep 2010 13:45:54 GMT
Author: nick
Date: Thu Sep 16 13:45:54 2010
New Revision: 997751

URL: http://svn.apache.org/viewvc?rev=997751&view=rev
Log:
Add a few more test asserts

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

Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java?rev=997751&r1=997750&r2=997751&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java (original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestProblems.java Thu
Sep 16 13:45:54 2010
@@ -305,6 +305,7 @@ public final class TestProblems extends 
       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 
       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 
       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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message