[Lada-commits] [PATCH 5 of 7] Added tests for verwaltungseinheit services

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


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424355665 -3600
# Node ID ae3105d0373706dce95cedefce1ddd82b2898cf9
# Parent  727d18d8fc26c1dbc246c17d9910b769fe7bad6d
Added tests for verwaltungseinheit services.

diff -r 727d18d8fc26 -r ae3105d03737 src/test/java/de/intevation/lada/LadaStammTest.java
--- a/src/test/java/de/intevation/lada/LadaStammTest.java	Thu Feb 19 15:20:34 2015 +0100
+++ b/src/test/java/de/intevation/lada/LadaStammTest.java	Thu Feb 19 15:21:05 2015 +0100
@@ -219,6 +219,20 @@
         stammdatenTest.getById(baseUrl, "umwelt", "L6", testProtocol);
     }
 
+    @Test
+    @RunAsClient
+    public final void testVerwaltungseinheitAll(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getAll(baseUrl, "verwaltungseinheit", testProtocol);
+    }
+
+    @Test
+    @RunAsClient
+    public final void testVerwaltungseinheitById(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getById(baseUrl, "verwaltungseinheit", "09575134", testProtocol);
+    }
+
+    @Test
+    @RunAsClient
     public final void testLocation1CreateService(@ArquillianResource URL baseUrl)
     throws Exception {
         System.out.print(".");
diff -r 727d18d8fc26 -r ae3105d03737 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:20:34 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Thu Feb 19 15:21:05 2015 +0100
@@ -76,6 +76,14 @@
         compare.put("umwelt",
             "{\"id\":\"L6\",\"beschreibung\":null,\"umweltBereich\":" +
             "\"Spurenmessung Luft\",\"mehId\":62}");
+        compare.put("verwaltungseinheit",
+            "{\"id\":\"09575134\",\"bezeichnung\":\"Ippesheim\"," +
+            "\"bundesland\":\"09000000\",\"isBundesland\":\"0\"," +
+            "\"isGemeinde\":\"1\",\"isLandkreis\":\"0\",\"isRegbezirk\":" +
+            "\"0\",\"koordXExtern\":\"32588490\",\"koordYExtern\":" +
+            "\"5495240\",\"kreis\":\"09575000\",\"latitude\":49.60325," +
+            "\"longitude\":10.2247,\"nuts\":\"DE25A09575\",\"plz\":null," +
+            "\"regbezirk\":\"09500000\",\"koordinatenartId\":5}");
     }
 
     /**


More information about the Lada-commits mailing list