[Lada-commits] [PATCH 2 of 7] Added tests for umwelt services

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


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424355598 -3600
# Node ID ddb83d20e52a52d3d2e41118e45bb32197164c38
# Parent  71424f1d6d5b677ea3ce90ad9f75308d467774de
Added tests for umwelt services.

diff -r 71424f1d6d5b -r ddb83d20e52a src/test/java/de/intevation/lada/LadaStammTest.java
--- a/src/test/java/de/intevation/lada/LadaStammTest.java	Thu Feb 19 15:18:43 2015 +0100
+++ b/src/test/java/de/intevation/lada/LadaStammTest.java	Thu Feb 19 15:19:58 2015 +0100
@@ -209,6 +209,16 @@
 
     @Test
     @RunAsClient
+    public final void testUmweltAll(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getAll(baseUrl, "umwelt", testProtocol);
+    }
+
+    @Test
+    @RunAsClient
+    public final void testUmweltById(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getById(baseUrl, "umwelt", "L6", testProtocol);
+    }
+
     public final void testLocation1CreateService(@ArquillianResource URL baseUrl)
     throws Exception {
         System.out.print(".");
diff -r 71424f1d6d5b -r ddb83d20e52a src/test/java/de/intevation/lada/test/stamm/Stammdaten.java
--- a/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Thu Feb 19 15:18:43 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Thu Feb 19 15:19:58 2015 +0100
@@ -73,6 +73,9 @@
             "\"-59,6105\",\"koordYExtern\":\"13,0935\",\"staat\":" +
             "\"Barbados\",\"staatIso\":\"BB\",\"staatKurz\":\"BDS\"," +
             "\"koordinatenartId\":4}");
+        compare.put("umwelt",
+            "{\"id\":\"L6\",\"beschreibung\":null,\"umweltBereich\":" +
+            "\"Spurenmessung Luft\",\"mehId\":62}");
     }
 
     /**


More information about the Lada-commits mailing list