From: Dominik Stadler Date: Sat, 12 Mar 2016 11:36:50 +0000 (+0000) Subject: Enable some tests that are ignored, actually run green and did not have any comment... X-Git-Tag: REL_3_15_BETA2~463 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2c961ee815f169d89ace4d80ddb9be91a0f849e4;p=poi.git 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 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1734687 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java b/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java index 060b1e4d3f..7c9542ca94 100644 --- a/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java +++ b/src/ooxml/testcases/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java @@ -355,7 +355,7 @@ public class TestXWPFWordExtractor extends TestCase { for (String targ : targs) { boolean hit = false; - if (s.indexOf(targ) > -1) { + if (s.contains(targ)) { hit = true; hits++; } diff --git a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java index b877451aa8..6cd3171f3c 100644 --- a/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java +++ b/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java @@ -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 ps = xml.getParagraphs();