poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1734687 - in /poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf: extractor/TestXWPFWordExtractor.java usermodel/TestXWPFParagraph.java
Date Sat, 12 Mar 2016 11:36:50 GMT
Author: centic
Date: Sat Mar 12 11:36:50 2016
New Revision: 1734687

URL: http://svn.apache.org/viewvc?rev=1734687&view=rev
Log:
Enable some tests that are ignored, actually run green and did not have any comment why they
were ignored in the first place
Fix some compiler warnings

Modified:
    poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java
    poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java?rev=1734687&r1=1734686&r2=1734687&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java
(original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java
Sat Mar 12 11:36:50 2016
@@ -355,7 +355,7 @@ public class TestXWPFWordExtractor exten
 
         for (String targ : targs) {
             boolean hit = false;
-            if (s.indexOf(targ) > -1) {
+            if (s.contains(targ)) {
                 hit = true;
                 hits++;
             }

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java?rev=1734687&r1=1734686&r2=1734687&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java Sat
Mar 12 11:36:50 2016
@@ -28,7 +28,6 @@ import java.math.BigInteger;
 import java.util.List;
 
 import org.apache.poi.xwpf.XWPFTestDataSamples;
-import org.junit.Ignore;
 import org.junit.Test;
 import org.openxmlformats.schemas.drawingml.x2006.picture.CTPicture;
 import org.openxmlformats.schemas.drawingml.x2006.picture.PicDocument;
@@ -61,7 +60,6 @@ public final class TestXWPFParagraph {
      * @throws IOException
      */
     @Test
-    @Ignore
     public void testHeaderParagraph() throws IOException {
         XWPFDocument xml = XWPFTestDataSamples.openSampleDocument("ThreeColHead.docx");
 
@@ -84,7 +82,6 @@ public final class TestXWPFParagraph {
      * @throws IOException
      */
     @Test
-    @Ignore
     public void testDocumentParagraph() throws IOException {
         XWPFDocument xml = XWPFTestDataSamples.openSampleDocument("ThreeColHead.docx");
         List<XWPFParagraph> ps = xml.getParagraphs();



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


Mime
View raw message