Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2457 Embedded documents likely not correctly parsed by Tika - remove needless unit test whether document to be tested is opened by parse-tika

Sebastian Nagel9c424f98c8eb
diff --git a/src/plugin/parse-tika/src/test/org/apache/nutch/parse/tika/TestEmbeddedDocuments.java b/src/plugin/parse-tika/src/test/org/apache/nutch/parse/tika/TestEmbeddedDocuments.java
index f82dacdb1..11446b9c2 100644
--- a/src/plugin/parse-tika/src/test/org/apache/nutch/parse/tika/TestEmbeddedDocuments.java
+++ b/src/plugin/parse-tika/src/test/org/apache/nutch/parse/tika/TestEmbeddedDocuments.java
@@ -77,12 +77,4 @@ public class TestEmbeddedDocuments {
}
}
- @Test
- public void testOpeningDocs() throws ProtocolException, ParseException {
- String[] filenames = new File(sampleDir).list();
- for (int i = 0; i < filenames.length; i++) {
- Assert.assertTrue("can't read content of " + filenames[i],
- getTextContent(filenames[i]).length() > 0);
- }
- }
}