Removed commercial foundries from test file
diff --git a/src/test/java/de/ids_mannheim/korap/highlight/TestClass.java b/src/test/java/de/ids_mannheim/korap/highlight/TestClass.java
index c1363b5..02e996c 100644
--- a/src/test/java/de/ids_mannheim/korap/highlight/TestClass.java
+++ b/src/test/java/de/ids_mannheim/korap/highlight/TestClass.java
@@ -58,8 +58,7 @@
kr.getMatch(1).getSnippetBrackets());
}
- // Temp
- // @Test
+ @Test
public void queryJSONpoly4() throws QueryException, IOException {
String jsonPath = getClass().getResource("/queries/poly4.json").getFile();
@@ -68,24 +67,27 @@
jsonQuery
);
SpanQuery sq = sqwi.toQuery();
+ /*
System.out.println(sq.toString());
-
+ */
+
ki = new KorapIndex();
ki.addDocFile(
getClass().getResource("/wiki/SSS-09803.json.gz").getFile(),true);
ki.commit();
kr = ki.search(sq, (short) 10);
-
- assertEquals(827, kr.getTotalResults());
- assertEquals(3, kr.getMatch(0).getStartPos());
- assertEquals(5, kr.getMatch(0).getEndPos());
-
+ /*
for (KorapMatch km : kr.getMatches()){
System.out.println(km.getStartPos() +","+km.getEndPos()+" "
+km.getSnippetBrackets()
);
}
+ assertEquals(827, kr.getTotalResults());
+ assertEquals(3, kr.getMatch(0).getStartPos());
+ assertEquals(5, kr.getMatch(0).getEndPos());
+ */
+ fail("Tests have to be updated");
}
diff --git a/src/test/java/de/ids_mannheim/korap/index/TestWithinIndex.java b/src/test/java/de/ids_mannheim/korap/index/TestWithinIndex.java
index 12d561d..ee7f712 100644
--- a/src/test/java/de/ids_mannheim/korap/index/TestWithinIndex.java
+++ b/src/test/java/de/ids_mannheim/korap/index/TestWithinIndex.java
@@ -1075,8 +1075,7 @@
/**
* @throws IOException */
- // TODO: TEMP::
- //@Test
+ @Test
public void queryJSONpoly2() throws QueryException, IOException {
String jsonPath = getClass().getResource("/queries/poly2.json").getFile();
diff --git a/src/test/resources/queries/poly4.json b/src/test/resources/queries/poly4.json
index 8f1f1ec..eb863e1 100644
--- a/src/test/resources/queries/poly4.json
+++ b/src/test/resources/queries/poly4.json
@@ -49,8 +49,8 @@
"@type" : "korap:token",
"wrap" : {
"@type" : "korap:term",
- "foundry" : "cnx",
- "key" : "N",
+ "foundry" : "tt",
+ "key" : "NN",
"layer" : "p",
"match" : "match:eq"
}
@@ -82,4 +82,4 @@
},
"warnings" : []
}
-
\ No newline at end of file
+
diff --git a/src/test/resources/wiki/SSS-09803.json.gz b/src/test/resources/wiki/SSS-09803.json.gz
index ebc4001..3f8b7d1 100644
--- a/src/test/resources/wiki/SSS-09803.json.gz
+++ b/src/test/resources/wiki/SSS-09803.json.gz
Binary files differ