changeset 815:00dccff53000 statusworkflow

Test failed because used mkommentar was not authorized.
author Tom Gottfried <tom@intevation.de>
date Tue, 08 Dec 2015 12:50:18 +0100
parents b0be28bbfc55
children 21c1bbc453f5
files src/test/java/de/intevation/lada/test/land/KommentarM.java
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/test/java/de/intevation/lada/test/land/KommentarM.java	Tue Dec 08 10:37:05 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/land/KommentarM.java	Tue Dec 08 12:50:18 2015 +0100
@@ -37,10 +37,13 @@
  */
 public class KommentarM {
 
+    private static final int KOMMENTAR_ID = 507;
+
     private static final String COMPARE_KOMMENTARM =
-        "{\"messungsId\":5,\"datum\":1336634700000,\"erzeuger\":\"12010\"," +
-        "\"id\":478,\"text\":\"Hofladen Lenzen geschlossen\",\"owner\":false," +
-        "\"readonly\":true}";
+        "{\"messungsId\":988,\"datum\":1346932500000,\"erzeuger\":\"3002\"," +
+        "\"id\":" + KOMMENTAR_ID +
+        ",\"text\":\"Testkommentar 01\",\"owner\":true," +
+        "\"readonly\":false}";
 
     private static final String CREATE_KOMMENTARM =
         "{\"messungsId\":\"MID\",\"erzeuger\":\"06010\",\"text\":" +
@@ -125,8 +128,9 @@
             JsonObject staticKommentar = fromStringRreader.readObject();
             /* Create a client*/
             Client client = ClientBuilder.newClient();
-            WebTarget target = client.target(baseUrl + "mkommentar/478");
-            prot.addInfo("kommentarId", 478);
+            WebTarget target = client.target(
+                baseUrl + "mkommentar/" + KOMMENTAR_ID);
+            prot.addInfo("kommentarId", KOMMENTAR_ID);
             /* Request an object by id*/
             Response response = target.request()
                 .header("X-SHIB-user", BaseTest.TEST_USER)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)