Mercurial > lada > lada-server
changeset 504:251e254e4c2e
Added tests for messstellen services.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 18 Feb 2015 16:57:44 +0100 (2015-02-18) |
parents | cea06ebf3614 |
children | c813b4c1775f |
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:48:11 2015 +0100 +++ b/src/test/java/de/intevation/lada/LadaStammTest.java Wed Feb 18 16:57:44 2015 +0100 @@ -94,4 +94,16 @@ public final void testMessmethodeById(@ArquillianResource URL baseUrl) { stammdatenTest.getById(baseUrl, "messmethode", "GI", testProtocol); } + + @Test + @RunAsClient + public final void testMessstelleAll(@ArquillianResource URL baseUrl) { + stammdatenTest.getAll(baseUrl, "messstelle", testProtocol); + } + + @Test + @RunAsClient + public final void testMessstelleById(@ArquillianResource URL baseUrl) { + stammdatenTest.getById(baseUrl, "messstelle", "03151", testProtocol); + } }
--- a/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java Wed Feb 18 16:48:11 2015 +0100 +++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java Wed Feb 18 16:57:44 2015 +0100 @@ -39,6 +39,11 @@ compare.put("messmethode", "{\"id\":\"GI\",\"beschreibung\":null,\"messmethode\":" + "\"Iod, Gamma-Spektrometrie\"}"); + compare.put("messstelle", + "{\"id\":\"03151\",\"amtskennung\":null,\"beschreibung\":" + + "\"E.ON Kernkraftwerk GmbH, Kernkraftwerk Stade, Postfach 1780, " + + "21657 Stade\",\"messStelle\":\"KKW - KKS\",\"mstTyp\":\"M\"," + + "\"netzbetreiberId\":\"03\"}"); } /**