[Lada-commits] [PATCH] Fixed tests to connect to the latest server version
Wald Commits
scm-commit at wald.intevation.org
Fri Oct 11 11:47:29 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1381484751 -7200
# Node ID 77b4b85b0134c71c5f1ebc3dd28c126d9fb38dfb
# Parent 5c401065996794687fb5e15f508b9706a75cd79f
Fixed tests to connect to the latest server version.
diff -r 5c4010659967 -r 77b4b85b0134 src/test/java/de/intevation/lada/TestRestEasyClient.java
--- a/src/test/java/de/intevation/lada/TestRestEasyClient.java Wed Oct 09 15:00:31 2013 +0200
+++ b/src/test/java/de/intevation/lada/TestRestEasyClient.java Fri Oct 11 11:45:51 2013 +0200
@@ -8,7 +8,7 @@
public class TestRestEasyClient {
- public static String baseURL = "https://bfs-lada.intevation.de/lada/server/rest/";
+ public static String baseURL = "https://bfs-lada.intevation.de/lada-0.6/server/rest/";
public ClientResponse<String> getResponse(String url, boolean header){
ClientRequest request = new ClientRequest(url);
@@ -83,8 +83,8 @@
}
@Test
public void testLProbenService() {
- testHttpOK(baseURL + "proben?mstId=06010&umwId=N24");
- testHttpForbidden(baseURL + "proben?mstId=06010&umwId=N24");
+ testHttpOK(baseURL + "proben?mst_id=06010&umw_id=N24&qid=2");
+ testHttpForbidden(baseURL + "proben?mst_id=06010&umw_id=N24&qid=2");
ClientResponse<String> response = getResponse(baseURL + "proben/000007587685X", true);
Assert.assertNotNull(response);
Assert.assertEquals(200, response.getStatus());
More information about the Lada-commits
mailing list