changeset 512:ecec45315b21

Added tests for probenart services.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 19 Feb 2015 09:28:42 +0100 (2015-02-19)
parents dd78b545e350
children 08360cc20a5f
files src/test/java/de/intevation/lada/LadaStammTest.java src/test/java/de/intevation/lada/test/stamm/Stammdaten.java
diffstat 2 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/test/java/de/intevation/lada/LadaStammTest.java	Thu Feb 19 09:15:09 2015 +0100
+++ b/src/test/java/de/intevation/lada/LadaStammTest.java	Thu Feb 19 09:28:42 2015 +0100
@@ -130,4 +130,16 @@
     public final void testPflichtmessgroesseById(@ArquillianResource URL baseUrl) {
         stammdatenTest.getById(baseUrl, "pflichtmessgroesse", 33, testProtocol);
     }
+
+    @Test
+    @RunAsClient
+    public final void testProbenartAll(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getAll(baseUrl, "probenart", testProtocol);
+    }
+
+    @Test
+    @RunAsClient
+    public final void testProbenartById(@ArquillianResource URL baseUrl) {
+        stammdatenTest.getById(baseUrl, "probenart", 1, testProtocol);
+    }
 }
--- a/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Thu Feb 19 09:15:09 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java	Thu Feb 19 09:28:42 2015 +0100
@@ -51,6 +51,9 @@
         compare.put("pflichtmessgroesse",
             "{\"id\":33,\"messgroesseId\":904,\"datenbasisId\":4,\"mmtId\":" +
             "\"A3\",\"umweltId\":\"B2\"}");
+        compare.put("probenart",
+            "{\"id\":1,\"beschreibung\":\"Einzelprobe\",\"probenart\":\"E\"," +
+            "\"probenartEudfId\":\"A\"}");
     }
 
     /**
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)