changeset 497:27fccef93f62

Added tests for messeinheit service.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 18 Feb 2015 16:25:06 +0100
parents f61377527561
children becafc856b28
files src/test/java/de/intevation/lada/LadaStammTest.java src/test/java/de/intevation/lada/test/stamm/Stammdaten.java
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
+    }
 }
--- 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}");
     }
 
     /**
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)