changeset 509:7b3911b0d06e

Added tests for pflichtmessgroesse services.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 19 Feb 2015 09:14:30 +0100
parents e4463de1f6ee
children 7792ac182167
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(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/test/java/de/intevation/lada/LadaStammTest.java	Thu Feb 19 09:13:48 2015 +0100
+++ b/src/test/java/de/intevation/lada/LadaStammTest.java	Thu Feb 19 09:14:30 2015 +0100
@@ -39,7 +39,7 @@
     public LadaStammTest () {
         stammdatenTest = new Stammdaten();
         testProtocol = new ArrayList<Protocol>();
-        verboseLogging = true;
+        verboseLogging = false;
     }
 
     @BeforeClass
@@ -118,4 +118,16 @@
     public final void testNetzbetreiberById(@ArquillianResource URL baseUrl) {
         stammdatenTest.getById(baseUrl, "netzbetreiber", "PA", testProtocol);
     }
+
+    @Test
+    @RunAsClient
+    public final void testPflichtmessgroesseAll(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getAll(baseUrl, "pflichtmessgroesse", testProtocol);
+    }
+
+    @Test
+    @RunAsClient
+    public final void testPflichtmessgroesseById(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getById(baseUrl, "pflichtmessgroesse", 33, testProtocol);
+    }
 }
--- a/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Thu Feb 19 09:13:48 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Thu Feb 19 09:14:30 2015 +0100
@@ -48,6 +48,9 @@
             "{\"id\":\"PA\",\"aktiv\":true,\"idfNetzbetreiber\":\"R\"," +
             "\"isBmn\":true,\"mailverteiler\":\"PA\",\"netzbetreiber\":" +
             "\"Park\",\"zustMstId\":null}");
+        compare.put("pflichtmessgroesse",
+            "{\"id\":33,\"messgroesseId\":904,\"datenbasisId\":4,\"mmtId\":" +
+            "\"A3\",\"umweltId\":\"B2\"}");
     }
 
     /**
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)