[Lada-commits] [PATCH 1 of 8] Added tests for probenzusatz service

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


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424351554 -3600
# Node ID 6774e6aa350dd46699292f2079afe005605b47f8
# Parent  08360cc20a5fab7808fb689d3b32ba97076179f3
Added tests for probenzusatz service.

diff -r 08360cc20a5f -r 6774e6aa350d src/test/java/de/intevation/lada/LadaStammTest.java
--- a/src/test/java/de/intevation/lada/LadaStammTest.java	Thu Feb 19 09:29:08 2015 +0100
+++ b/src/test/java/de/intevation/lada/LadaStammTest.java	Thu Feb 19 14:12:34 2015 +0100
@@ -142,4 +142,16 @@
     public final void testProbenartById(@ArquillianResource URL baseUrl) {
         stammdatenTest.getById(baseUrl, "probenart", 1, testProtocol);
     }
+
+    @Test
+    @RunAsClient
+    public final void testProbenzusatzAll(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getAll(baseUrl, "probenzusatz", testProtocol);
+    }
+
+    @Test
+    @RunAsClient
+    public final void testProbenzusatzById(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getById(baseUrl, "probenzusatz", "A74", testProtocol);
+    }
 }
diff -r 08360cc20a5f -r 6774e6aa350d src/test/java/de/intevation/lada/test/stamm/Stammdaten.java
--- a/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Thu Feb 19 09:29:08 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Thu Feb 19 14:12:34 2015 +0100
@@ -54,6 +54,9 @@
         compare.put("probenart",
             "{\"id\":1,\"beschreibung\":\"Einzelprobe\",\"probenart\":\"E\"," +
             "\"probenartEudfId\":\"A\"}");
+        compare.put("probenzusatz",
+            "{\"id\":\"A74\",\"beschreibung\":\"Volumenstrom\"," +
+            "\"eudfKeyword\":null,\"zusatzwert\":\"VOLSTR\",\"mehId\":32}");
     }
 
     /**


More information about the Lada-commits mailing list