[Lada-commits] [PATCH 1 of 2] Added tests for messstellen services

Wald Commits scm-commit at wald.intevation.org
Wed Feb 18 16:57:14 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424275064 -3600
# Node ID 251e254e4c2ee0fa090db5cd025b5a8bdfdb55c9
# Parent  cea06ebf361451c9aff0fbce2593d8edcf2103c1
Added tests for messstellen services.

diff -r cea06ebf3614 -r 251e254e4c2e src/test/java/de/intevation/lada/LadaStammTest.java
--- a/src/test/java/de/intevation/lada/LadaStammTest.java	Wed Feb 18 16:48:11 2015 +0100
+++ b/src/test/java/de/intevation/lada/LadaStammTest.java	Wed Feb 18 16:57:44 2015 +0100
@@ -94,4 +94,16 @@
     public final void testMessmethodeById(@ArquillianResource URL baseUrl) {
         stammdatenTest.getById(baseUrl, "messmethode", "GI", testProtocol);
     }
+
+    @Test
+    @RunAsClient
+    public final void testMessstelleAll(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getAll(baseUrl, "messstelle", testProtocol);
+    }
+
+    @Test
+    @RunAsClient
+    public final void testMessstelleById(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getById(baseUrl, "messstelle", "03151", testProtocol);
+    }
 }
diff -r cea06ebf3614 -r 251e254e4c2e src/test/java/de/intevation/lada/test/stamm/Stammdaten.java
--- a/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Wed Feb 18 16:48:11 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Wed Feb 18 16:57:44 2015 +0100
@@ -39,6 +39,11 @@
         compare.put("messmethode",
             "{\"id\":\"GI\",\"beschreibung\":null,\"messmethode\":" +
             "\"Iod, Gamma-Spektrometrie\"}");
+        compare.put("messstelle",
+            "{\"id\":\"03151\",\"amtskennung\":null,\"beschreibung\":" +
+            "\"E.ON Kernkraftwerk GmbH, Kernkraftwerk Stade, Postfach 1780, " +
+            "21657 Stade\",\"messStelle\":\"KKW - KKS\",\"mstTyp\":\"M\"," +
+            "\"netzbetreiberId\":\"03\"}");
     }
 
     /**


More information about the Lada-commits mailing list