changeset 514:6774e6aa350d

Added tests for probenzusatz service.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 19 Feb 2015 14:12:34 +0100
parents 08360cc20a5f
children 12f7cc76a969
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: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);
+    }
 }
--- 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}");
     }
 
     /**
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)