[Lada-commits] [PATCH 1 of 2] Added tests for probenart services

Wald Commits scm-commit at wald.intevation.org
Thu Feb 19 09:28:19 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424334522 -3600
# Node ID ecec45315b2180328082103620f1fca9144b2511
# Parent  dd78b545e3509ba946179cf0f5e2159488c3362f
Added tests for probenart services.

diff -r dd78b545e350 -r ecec45315b21 src/test/java/de/intevation/lada/LadaStammTest.java
--- 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);
+    }
 }
diff -r dd78b545e350 -r ecec45315b21 src/test/java/de/intevation/lada/test/stamm/Stammdaten.java
--- 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\"}");
     }
 
     /**


More information about the Lada-commits mailing list