commit | 0f02d132e0506dbe0ac15f8f14aa489bd95c9f7d | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Wed Sep 17 16:45:06 2025 +0200 |
committer | Akron <nils@diewald-online.de> | Tue Sep 23 11:05:39 2025 +0200 |
tree | 04ce4960a00b70996bf9982bda82885662a8369b | |
parent | b53c5655af27035a6659caf0d75366bf75e9d601 [diff] |
Adapt tests to Krill now calling Collection VC (fixed indents) Fixes tests. See https://korap.ids-mannheim.de/gerrit/c/KorAP/Krill/+/9653/3/src/main/java/de/ids_mannheim/korap/KrillCollection.java Change-Id: I9491dc7f7c607a065e52e444903076f024105abd
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 c7b1fef..9657f06 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
@@ -179,8 +179,7 @@ JsonNode node = JsonUtils.readTree(ent); assertEquals(de.ids_mannheim.korap.util.StatusCodes.MISSING_COLLECTION, node.at("/errors/0/0").asInt()); - assertEquals("Collection is not found", - node.at("/errors/0/1").asText()); + assertTrue(node.at("/errors/0/1").asText().contains(" is not found")); } @Test
diff --git a/src/test/java/de/ids_mannheim/korap/web/lite/LiteStatisticControllerTest.java b/src/test/java/de/ids_mannheim/korap/web/lite/LiteStatisticControllerTest.java index 699536a..e3527df 100644 --- a/src/test/java/de/ids_mannheim/korap/web/lite/LiteStatisticControllerTest.java +++ b/src/test/java/de/ids_mannheim/korap/web/lite/LiteStatisticControllerTest.java
@@ -92,8 +92,7 @@ JsonNode node = JsonUtils.readTree(ent); assertEquals(node.at("/errors/0/0").asInt(), de.ids_mannheim.korap.util.StatusCodes.MISSING_COLLECTION); - assertEquals(node.at("/errors/0/1").asText(), - "Collection is not found"); + assertTrue(node.at("/errors/0/1").asText().contains(" is not found")); } @Test