Author: centic
Date: Sat Sep 16 08:20:32 2017
New Revision: 1808503

URL: http://svn.apache.org/viewvc?rev=1808503&view=rev
Log:
Add additional check as mentioned in bug 50060

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

Modified: 
poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestLists.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestLists.java?rev=1808503&r1=1808502&r2=1808503&view=diff
==============================================================================
--- 
poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestLists.java 
(original)
+++ 
poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestLists.java 
Sat Sep 16 08:20:32 2017
@@ -207,6 +207,9 @@ public final class TestLists extends Tes
       assertEquals(4, r.getParagraph(21).getIlvl());
       assertEquals(1, r.getParagraph(22).getIlvl());
       assertEquals(0, r.getParagraph(23).getIlvl());
+
+      // Try to read numCharacterRuns, see bug 50060
+      assertEquals(1, r.getParagraph(0).numCharacterRuns());
    }
 
    public void testSpecificNumberedOrderedListFeatures() throws IOException {
@@ -250,5 +253,4 @@ public final class TestLists extends Tes
       assertEquals((byte)3, lvl[1]);
       assertEquals((byte)5, lvl[2]);
    }
-
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to