[Lada-commits] [PATCH 1 of 2] Added tests for messmethode service

Wald Commits scm-commit at wald.intevation.org
Wed Feb 18 16:47:19 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424274468 -3600
# Node ID ff5e10f2dc8a778451c46dab01e26595ebabf50a
# Parent  8e2b12c50de5fac4289ef07446505c5eb52626d9
Added tests for messmethode service.

diff -r 8e2b12c50de5 -r ff5e10f2dc8a src/test/java/de/intevation/lada/LadaStammTest.java
--- a/src/test/java/de/intevation/lada/LadaStammTest.java	Wed Feb 18 16:39:56 2015 +0100
+++ b/src/test/java/de/intevation/lada/LadaStammTest.java	Wed Feb 18 16:47:48 2015 +0100
@@ -82,4 +82,16 @@
     public final void testMessgroesseById(@ArquillianResource URL baseUrl) {
         stammdatenTest.getById(baseUrl, "messgroesse", 56, testProtocol);
     }
+
+    @Test
+    @RunAsClient
+    public final void testMessmethodeAll(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getAll(baseUrl, "messmethode", testProtocol);
+    }
+
+    @Test
+    @RunAsClient
+    public final void testMessmethodeById(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getById(baseUrl, "messmethode", "GI", testProtocol);
+    }
 }
diff -r 8e2b12c50de5 -r ff5e10f2dc8a src/test/java/de/intevation/lada/test/stamm/Stammdaten.java
--- a/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Wed Feb 18 16:39:56 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Wed Feb 18 16:47:48 2015 +0100
@@ -36,6 +36,9 @@
             "\"175175075\",\"eudfNuklidId\":50,\"idfNuklidKey\":\"Mn54\"," +
             "\"istLeitnuklid\":false,\"kennungBvl\":\"1925054\"," +
             "\"messgroesse\":\"Mn 54\"}");
+        compare.put("messmethode",
+            "{\"id\":\"GI\",\"beschreibung\":null,\"messmethode\":" +
+            "\"Iod, Gamma-Spektrometrie\"}");
     }
 
     /**
@@ -79,7 +82,7 @@
     public final void getById(
         URL baseUrl,
         String type,
-        Integer id,
+        Object id,
         List<Protocol> protocol
     ) {
         System.out.print(".");


More information about the Lada-commits mailing list