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
This commit is contained in:
Dominik Stadler 2016-03-12 11:36:50 +00:00
parent 8c508d89b0
commit b989e4f5a8
2 changed files with 1 additions and 4 deletions

View File

@ -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++;
}

View File

@ -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();