commit | 6e2c36c6175227444e269a94f9dd934d9216cd63 | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Sun Dec 15 10:49:59 2024 +0100 |
committer | margaretha <margaretha@ids-mannheim.de> | Sat Jan 25 12:12:16 2025 +0100 |
tree | abf443bf92a0fa54a6582311f5a370a848c70d25 | |
parent | b9b317df2ff76717b576f026c692a1f7bd9a52f4 [diff] |
Fix date type fail test 1810 can also be another type of value, e.g. integer. Required by https://korap.ids-mannheim.de/gerrit/c/KorAP/Koral/+/9098 and https://github.com/KorAP/Koral/issues/218 Change-Id: I86aa22a4a3afc58549bdd49e90f66e84024a8a17
diff --git a/src/test/java/de/ids_mannheim/korap/web/controller/StatisticsControllerTest.java b/src/test/java/de/ids_mannheim/korap/web/controller/StatisticsControllerTest.java index 61499b5..6ddc583 100644 --- a/src/test/java/de/ids_mannheim/korap/web/controller/StatisticsControllerTest.java +++ b/src/test/java/de/ids_mannheim/korap/web/controller/StatisticsControllerTest.java
@@ -102,7 +102,7 @@ public void testGetStatisticsWithWrongcorpusQuery2 () throws IOException, KustvaktException { Response response = target().path(API_VERSION).path("statistics") - .queryParam("cq", "creationDate >= 1810").request().get(); + .queryParam("cq", "creationDate >= 1810-05").request().get(); String ent = response.readEntity(String.class); assertEquals(Status.BAD_REQUEST.getStatusCode(), response.getStatus()); JsonNode node = JsonUtils.readTree(ent);