[Lada-commits] [PATCH 6 of 7] Added tests for messeinheit service

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


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424273106 -3600
# Node ID 27fccef93f625c93c752c17969e7bccf7cec44a8
# Parent  f613775275618bcfccf3fe7923ea6858ad2b15b7
Added tests for messeinheit service.

diff -r f61377527561 -r 27fccef93f62 src/test/java/de/intevation/lada/LadaStammTest.java
--- a/src/test/java/de/intevation/lada/LadaStammTest.java	Wed Feb 18 16:12:54 2015 +0100
+++ b/src/test/java/de/intevation/lada/LadaStammTest.java	Wed Feb 18 16:25:06 2015 +0100
@@ -58,4 +58,16 @@
     public final void testDatenbasisById(@ArquillianResource URL baseUrl) {
         stammdatenTest.getById(baseUrl, "datenbasis", 9, testProtocol);
     }
+
+    @Test
+    @RunAsClient
+    public final void testMesseinheitAll(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getAll(baseUrl, "messeinheit", testProtocol);
+    }
+
+    @Test
+    @RunAsClient
+    public final void testMesseinheitById(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getById(baseUrl, "messeinheit", 207, testProtocol);
+    }
 }
diff -r f61377527561 -r 27fccef93f62 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:12:54 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Wed Feb 18 16:25:06 2015 +0100
@@ -27,6 +27,10 @@
         compare = new HashMap<String, String>();
         compare.put("datenbasis",
             "{\"id\":9,\"beschreibung\":\"Europa\",\"datenbasis\":\"Europa\"}");
+        compare.put("messeinheit",
+            "{\"id\":207,\"beschreibung\":\"Becquerel pro Stunde\"," +
+            "\"einheit\":\"Bq/h\",\"eudfMesseinheitId\":null," +
+            "\"umrechnungsFaktorEudf\":null}");
     }
 
     /**


More information about the Lada-commits mailing list