changeset 506:f2832b156be3

Added tests for netzbetreiber service.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 19 Feb 2015 08:54:16 +0100
parents c813b4c1775f
children 77b6cde09805
files src/test/java/de/intevation/lada/LadaStammTest.java src/test/java/de/intevation/lada/test/stamm/Stammdaten.java
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
+    }
 }
--- 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}");
     }
 
     /**
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)