Mercurial > lada > lada-server
changeset 499:4564f702f6aa
Added tests for messgroesse service.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 18 Feb 2015 16:38:39 +0100 |
parents | becafc856b28 |
children | 525e32be8559 |
files | src/test/java/de/intevation/lada/LadaStammTest.java src/test/java/de/intevation/lada/test/stamm/Stammdaten.java |
diffstat | 2 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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); + } }
--- 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\"}"); } /**