[Lada-commits] [PATCH 1 of 3] Added tests for messgroesse service
Wald Commits
scm-commit at wald.intevation.org
Wed Feb 18 16:39:01 CET 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424273919 -3600
# Node ID 4564f702f6aad29162d56a2431bbd4d2d2155678
# Parent becafc856b28c4df87d392ac501127fdc088555a
Added tests for messgroesse service.
diff -r becafc856b28 -r 4564f702f6aa src/test/java/de/intevation/lada/LadaStammTest.java
--- a/src/test/java/de/intevation/lada/LadaStammTest.java Wed Feb 18 16:25:21 2015 +0100
+++ b/src/test/java/de/intevation/lada/LadaStammTest.java Wed Feb 18 16:38:39 2015 +0100
@@ -70,4 +70,16 @@
public final void testMesseinheitById(@ArquillianResource URL baseUrl) {
stammdatenTest.getById(baseUrl, "messeinheit", 207, testProtocol);
}
+
+ @Test
+ @RunAsClient
+ public final void testMessgroesseAll(@ArquillianResource URL baseUrl) {
+ stammdatenTest.getAll(baseUrl, "messgroesse", testProtocol);
+ }
+
+ @Test
+ @RunAsClient
+ public final void testMessgroesseById(@ArquillianResource URL baseUrl) {
+ stammdatenTest.getById(baseUrl, "messgroesse", 56, testProtocol);
+ }
}
diff -r becafc856b28 -r 4564f702f6aa 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:25:21 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java Wed Feb 18 16:38:39 2015 +0100
@@ -31,6 +31,11 @@
"{\"id\":207,\"beschreibung\":\"Becquerel pro Stunde\"," +
"\"einheit\":\"Bq/h\",\"eudfMesseinheitId\":null," +
"\"umrechnungsFaktorEudf\":null}");
+ compare.put("messgroesse",
+ "{\"id\":56,\"beschreibung\":\"Mangan\",\"defaultFarbe\":" +
+ "\"175175075\",\"eudfNuklidId\":50,\"idfNuklidKey\":\"Mn54\"," +
+ "\"istLeitnuklid\":false,\"kennungBvl\":\"1925054\"," +
+ "\"messgroesse\":\"Mn 54\"}");
}
/**
More information about the Lada-commits
mailing list