changeset 530:ae3105d03737

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