changeset 522:90e6bc0d653e

Added tests for staat services.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 19 Feb 2015 14:49:36 +0100
parents 9046b3986e5a
children b28ad2ee8920
files src/test/java/de/intevation/lada/LadaStammTest.java src/test/java/de/intevation/lada/test/stamm/Stammdaten.java
diffstat 2 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/test/java/de/intevation/lada/LadaStammTest.java	Thu Feb 19 14:21:44 2015 +0100
+++ b/src/test/java/de/intevation/lada/LadaStammTest.java	Thu Feb 19 14:49:36 2015 +0100
@@ -197,6 +197,18 @@
 
     @Test
     @RunAsClient
+    public final void testStaatAll(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getAll(baseUrl, "staat", testProtocol);
+    }
+
+    @Test
+    @RunAsClient
+    public final void testStaatById(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getById(baseUrl, "staat", 322, 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 14:21:44 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Thu Feb 19 14:49:36 2015 +0100
@@ -68,6 +68,11 @@
         compare.put("koordinatenart",
             "{\"id\":2,\"idfGeoKey\":\"D\",\"koordinatenart\":" +
             "\"geografisch-gradiell (WGS84)\"}");
+        compare.put("staat",
+            "{\"id\":322,\"eu\":\"0\",\"hklId\":322,\"koordXExtern\":" +
+            "\"-59,6105\",\"koordYExtern\":\"13,0935\",\"staat\":" +
+            "\"Barbados\",\"staatIso\":\"BB\",\"staatKurz\":\"BDS\"," +
+            "\"koordinatenartId\":4}");
     }
 
     /**
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)