Mercurial > lada > lada-server
changeset 527:ddb83d20e52a
Added tests for umwelt services.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 19 Feb 2015 15:19:58 +0100 |
parents | 71424f1d6d5b |
children | 435e1399f887 |
files | src/test/java/de/intevation/lada/LadaStammTest.java src/test/java/de/intevation/lada/test/stamm/Stammdaten.java |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/test/java/de/intevation/lada/LadaStammTest.java Thu Feb 19 15:18:43 2015 +0100 +++ b/src/test/java/de/intevation/lada/LadaStammTest.java Thu Feb 19 15:19:58 2015 +0100 @@ -209,6 +209,16 @@ @Test @RunAsClient + public final void testUmweltAll(@ArquillianResource URL baseUrl) { + stammdatenTest.getAll(baseUrl, "umwelt", testProtocol); + } + + @Test + @RunAsClient + public final void testUmweltById(@ArquillianResource URL baseUrl) { + stammdatenTest.getById(baseUrl, "umwelt", "L6", testProtocol); + } + public final void testLocation1CreateService(@ArquillianResource URL baseUrl) throws Exception { System.out.print(".");
--- a/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java Thu Feb 19 15:18:43 2015 +0100 +++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java Thu Feb 19 15:19:58 2015 +0100 @@ -73,6 +73,9 @@ "\"-59,6105\",\"koordYExtern\":\"13,0935\",\"staat\":" + "\"Barbados\",\"staatIso\":\"BB\",\"staatKurz\":\"BDS\"," + "\"koordinatenartId\":4}"); + compare.put("umwelt", + "{\"id\":\"L6\",\"beschreibung\":null,\"umweltBereich\":" + + "\"Spurenmessung Luft\",\"mehId\":62}"); } /**