Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2228 Plugin index-replace unit test broken on Java 8

Markus Jelsmab3a6fb3d950d
diff --git a/CHANGES.txt b/CHANGES.txt
index 3e0fff92b..d61fb84cf 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,7 @@
Nutch Change Log
+* NUTCH-2228 Plugin index-replace unit test broken on Java 8 (snagel via markus)
+
* NUTCH-2219 Criteria order to be configurable in DeduplicationJob (Ron van der Vegt via markus)
* NUTCH-2218 Update CrawlComplete util to use Commons CLI (Joyce)
diff --git a/src/plugin/index-replace/src/test/org/apache/nutch/indexer/replace/TestIndexReplace.java b/src/plugin/index-replace/src/test/org/apache/nutch/indexer/replace/TestIndexReplace.java
index a69eb8008..ca90ca3e8 100644
--- a/src/plugin/index-replace/src/test/org/apache/nutch/indexer/replace/TestIndexReplace.java
+++ b/src/plugin/index-replace/src/test/org/apache/nutch/indexer/replace/TestIndexReplace.java
@@ -182,7 +182,7 @@ public class TestIndexReplace {
String expectedKeywords = "Breathtaking, Riveting, Two Thumbs Up!";
String expectedAuthor = "Peter Ciuffetti";
// Contains: invalid pattern, invalid flags, incomplete property
- String indexReplaceProperty = " metatag.description=/this\\hplugin/this awesome plugin/\n"
+ String indexReplaceProperty = " metatag.description=/this\\s+**plugin/this awesome plugin/\n"
+ " metatag.keywords=/\\,/\\!/what\n" + " metatag.author=#notcomplete";
Configuration conf = NutchConfiguration.create();