Mercurial > lada > lada-server
changeset 502:ff5e10f2dc8a
Added tests for messmethode service.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 18 Feb 2015 16:47:48 +0100 |
parents | 8e2b12c50de5 |
children | cea06ebf3614 |
files | src/test/java/de/intevation/lada/LadaStammTest.java src/test/java/de/intevation/lada/test/stamm/Stammdaten.java |
diffstat | 2 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/test/java/de/intevation/lada/LadaStammTest.java Wed Feb 18 16:39:56 2015 +0100 +++ b/src/test/java/de/intevation/lada/LadaStammTest.java Wed Feb 18 16:47:48 2015 +0100 @@ -82,4 +82,16 @@ public final void testMessgroesseById(@ArquillianResource URL baseUrl) { stammdatenTest.getById(baseUrl, "messgroesse", 56, testProtocol); } + + @Test + @RunAsClient + public final void testMessmethodeAll(@ArquillianResource URL baseUrl) { + stammdatenTest.getAll(baseUrl, "messmethode", testProtocol); + } + + @Test + @RunAsClient + public final void testMessmethodeById(@ArquillianResource URL baseUrl) { + stammdatenTest.getById(baseUrl, "messmethode", "GI", testProtocol); + } }
--- a/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java Wed Feb 18 16:39:56 2015 +0100 +++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java Wed Feb 18 16:47:48 2015 +0100 @@ -36,6 +36,9 @@ "\"175175075\",\"eudfNuklidId\":50,\"idfNuklidKey\":\"Mn54\"," + "\"istLeitnuklid\":false,\"kennungBvl\":\"1925054\"," + "\"messgroesse\":\"Mn 54\"}"); + compare.put("messmethode", + "{\"id\":\"GI\",\"beschreibung\":null,\"messmethode\":" + + "\"Iod, Gamma-Spektrometrie\"}"); } /** @@ -79,7 +82,7 @@ public final void getById( URL baseUrl, String type, - Integer id, + Object id, List<Protocol> protocol ) { System.out.print(".");