[Lada-commits] [PATCH 1 of 3] Added tests for staat services

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


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424353776 -3600
# Node ID 90e6bc0d653e02c2b443c0e84c02241860f37f60
# Parent  9046b3986e5af98d152ff6b201160c54e5cc1703
Added tests for staat services.

diff -r 9046b3986e5a -r 90e6bc0d653e src/test/java/de/intevation/lada/LadaStammTest.java
--- 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(".");
diff -r 9046b3986e5a -r 90e6bc0d653e src/test/java/de/intevation/lada/test/stamm/Stammdaten.java
--- 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}");
     }
 
     /**


More information about the Lada-commits mailing list