# HG changeset patch # User Tom Gottfried # Date 1449584065 -3600 # Node ID cb6598eaa93a07f04f83cbb349fd3088ae0466b0 # Parent a6383faca90eabac5bcda3e183617fcf0e08b53b Test failed because used messungsId was not authorized. diff -r a6383faca90e -r cb6598eaa93a src/test/java/de/intevation/lada/test/land/Status.java --- a/src/test/java/de/intevation/lada/test/land/Status.java Tue Dec 08 15:09:16 2015 +0100 +++ b/src/test/java/de/intevation/lada/test/land/Status.java Tue Dec 08 15:14:25 2015 +0100 @@ -34,6 +34,8 @@ */ public class Status { + private static final int MESSUNGS_ID = 591; + private static final String COMPARE = "{\"id\":1,\"erzeuger\":\"06010\",\"messungsId\":440,\"status\":3," + "\"owner\":false,\"readonly\":false,\"treeModified\":null," + @@ -160,8 +162,8 @@ /* Create a client*/ Client client = ClientBuilder.newClient(); WebTarget target = - client.target(baseUrl + "status?messungsId=1"); - prot.addInfo("filter", "messungsId=1"); + client.target(baseUrl + "status?messungsId=" + MESSUNGS_ID); + prot.addInfo("filter", "messungsId=" + MESSUNGS_ID); /* Request the objects using the filter*/ Response response = target.request() .header("X-SHIB-user", BaseTest.TEST_USER)