Added API URL versioning.
Change-Id: I0000000000000000000000000000000000000000
diff --git a/full/src/test/java/de/ids_mannheim/korap/web/controller/VCReferenceTest.java b/full/src/test/java/de/ids_mannheim/korap/web/controller/VCReferenceTest.java
index 342085f..a7e2195 100644
--- a/full/src/test/java/de/ids_mannheim/korap/web/controller/VCReferenceTest.java
+++ b/full/src/test/java/de/ids_mannheim/korap/web/controller/VCReferenceTest.java
@@ -27,7 +27,7 @@
}
private void testSearchWithoutVCRefOr () throws KustvaktException {
- ClientResponse response = resource().path("search")
+ ClientResponse response = resource().path(API_VERSION).path("search")
.queryParam("q", "[orth=der]").queryParam("ql", "poliqarp")
.queryParam("cq",
"textSigle=\"GOE/AGF/00000\" | textSigle=\"GOE/AGA/01784\"")
@@ -39,7 +39,7 @@
}
private void testSearchWithoutVCRefAnd () throws KustvaktException {
- ClientResponse response = resource().path("search")
+ ClientResponse response = resource().path(API_VERSION).path("search")
.queryParam("q", "[orth=der]").queryParam("ql", "poliqarp")
.queryParam("cq",
"textSigle!=\"GOE/AGI/04846\" & textSigle!=\"GOE/AGA/01784\"")
@@ -51,7 +51,7 @@
}
public void testSearchWithVCRefEqual () throws KustvaktException {
- ClientResponse response = resource().path("search")
+ ClientResponse response = resource().path(API_VERSION).path("search")
.queryParam("q", "[orth=der]").queryParam("ql", "poliqarp")
.queryParam("cq", "referTo named-vc1")
.get(ClientResponse.class);
@@ -63,7 +63,7 @@
}
public void testSearchWithVCRefNotEqual () throws KustvaktException {
- ClientResponse response = resource().path("search")
+ ClientResponse response = resource().path(API_VERSION).path("search")
.queryParam("q", "[orth=der]").queryParam("ql", "poliqarp")
.queryParam("cq", "referTo named-vc2")
.get(ClientResponse.class);
@@ -75,7 +75,7 @@
public void testStatisticsWithVCReference () throws KustvaktException {
String corpusQuery = "availability = /CC-BY.*/ & referTo named-vc1";
- ClientResponse response = resource().path("statistics")
+ ClientResponse response = resource().path(API_VERSION).path("statistics")
.queryParam("corpusQuery", corpusQuery)
.get(ClientResponse.class);