removal of date validation warning; validation for dateConstraint on date formats
Change-Id: I80929aaff0a5e690052621fab695588ac85283e1
diff --git a/src/test/java/de/ids_mannheim/korap/query/serialize/CollectionQueryProcessorTest.java b/src/test/java/de/ids_mannheim/korap/query/serialize/CollectionQueryProcessorTest.java
index 3725c83..1a24352 100644
--- a/src/test/java/de/ids_mannheim/korap/query/serialize/CollectionQueryProcessorTest.java
+++ b/src/test/java/de/ids_mannheim/korap/query/serialize/CollectionQueryProcessorTest.java
@@ -143,10 +143,7 @@
qs.setQuery(query, ql);
qs.setCollection(collection);
- String s = qs.toJSON();
- System.out.println("________________________");
- System.out.println(s);
- res = mapper.readTree(s);
+ res = mapper.readTree(qs.toJSON());
assertEquals("koral:docGroup", res.at("/collection/@type").asText());
assertEquals("operation:and", res.at("/collection/operation").asText());
assertEquals("koral:doc",
@@ -164,8 +161,9 @@
res.at("/collection/operands/1/type").isMissingNode());
assertEquals("match:eq",
res.at("/collection/operands/1/match").asText());
- assertTrue(res.at("/warnings/0/0").asText().startsWith(
- "The collection query contains a value that looks like a date"));
+ assertTrue(res.at("/warnings/0").isMissingNode());
+ // assertTrue(res.at("/warnings/0/0").asText().startsWith(
+ // "The collection query contains a value that looks like a date"));
}
@Test