[Lada-commits] [PATCH 2 of 4] Added tests for pflichtmessgroesse services

Wald Commits scm-commit at wald.intevation.org
Thu Feb 19 09:14:17 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424333670 -3600
# Node ID 7b3911b0d06e5a21a6e8d7fbeb3590ce11ef0810
# Parent  e4463de1f6ee648a7d0855c9cedc60429b74c110
Added tests for pflichtmessgroesse services.

diff -r e4463de1f6ee -r 7b3911b0d06e src/test/java/de/intevation/lada/LadaStammTest.java
--- 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);
+    }
 }
diff -r e4463de1f6ee -r 7b3911b0d06e src/test/java/de/intevation/lada/test/stamm/Stammdaten.java
--- 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\"}");
     }
 
     /**


More information about the Lada-commits mailing list