[Lada-commits] [PATCH 1 of 2] Added tests for netzbetreiber service

Wald Commits scm-commit at wald.intevation.org
Thu Feb 19 08:54:15 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424332456 -3600
# Node ID f2832b156be3546847f1410d9b7c20b109133383
# Parent  c813b4c1775f07bd4442874cee6f5561d900df64
Added tests for netzbetreiber service.

diff -r c813b4c1775f -r f2832b156be3 src/test/java/de/intevation/lada/LadaStammTest.java
--- a/src/test/java/de/intevation/lada/LadaStammTest.java	Wed Feb 18 16:58:04 2015 +0100
+++ b/src/test/java/de/intevation/lada/LadaStammTest.java	Thu Feb 19 08:54:16 2015 +0100
@@ -106,4 +106,16 @@
     public final void testMessstelleById(@ArquillianResource URL baseUrl) {
         stammdatenTest.getById(baseUrl, "messstelle", "03151", testProtocol);
     }
+
+    @Test
+    @RunAsClient
+    public final void testNetzbetreiberAll(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getAll(baseUrl, "netzbetreiber", testProtocol);
+    }
+
+    @Test
+    @RunAsClient
+    public final void testNetzbetreiberById(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getById(baseUrl, "netzbetreiber", "PA", testProtocol);
+    }
 }
diff -r c813b4c1775f -r f2832b156be3 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:58:04 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Thu Feb 19 08:54:16 2015 +0100
@@ -44,6 +44,10 @@
             "\"E.ON Kernkraftwerk GmbH, Kernkraftwerk Stade, Postfach 1780, " +
             "21657 Stade\",\"messStelle\":\"KKW - KKS\",\"mstTyp\":\"M\"," +
             "\"netzbetreiberId\":\"03\"}");
+        compare.put("netzbetreiber",
+            "{\"id\":\"PA\",\"aktiv\":true,\"idfNetzbetreiber\":\"R\"," +
+            "\"isBmn\":true,\"mailverteiler\":\"PA\",\"netzbetreiber\":" +
+            "\"Park\",\"zustMstId\":null}");
     }
 
     /**


More information about the Lada-commits mailing list