[Lada-commits] [PATCH 7 of 8] Added tests for koordinatenart services
Wald Commits
scm-commit at wald.intevation.org
Thu Feb 19 14:20:57 CET 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424352088 -3600
# Node ID 688d91792c634aad2cd311c340d4d41d6a797d78
# Parent 9ed02cacd020705ae9e9e41bab2a2cc28e83282d
Added tests for koordinatenart services.
diff -r 9ed02cacd020 -r 688d91792c63 src/test/java/de/intevation/lada/LadaStammTest.java
--- a/src/test/java/de/intevation/lada/LadaStammTest.java Thu Feb 19 14:15:14 2015 +0100
+++ b/src/test/java/de/intevation/lada/LadaStammTest.java Thu Feb 19 14:21:28 2015 +0100
@@ -185,6 +185,18 @@
@Test
@RunAsClient
+ public final void testKoordinatenartAll(@ArquillianResource URL baseUrl) {
+ stammdatenTest.getAll(baseUrl, "koordinatenart", testProtocol);
+ }
+
+ @Test
+ @RunAsClient
+ public final void testKoordinatenartById(@ArquillianResource URL baseUrl) {
+ stammdatenTest.getById(baseUrl, "koordinatenart", 2, testProtocol);
+ }
+
+ @Test
+ @RunAsClient
public final void testLocation1CreateService(@ArquillianResource URL baseUrl)
throws Exception {
System.out.print(".");
diff -r 9ed02cacd020 -r 688d91792c63 src/test/java/de/intevation/lada/test/stamm/Stammdaten.java
--- a/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java Thu Feb 19 14:15:14 2015 +0100
+++ b/src/test/java/de/intevation/lada/test/stamm/Stammdaten.java Thu Feb 19 14:21:28 2015 +0100
@@ -65,6 +65,9 @@
"\"nutsCode\":\"DE731\",\"unscharf\":\"0\",\"netzbetreiberId\":" +
"null,\"staatId\":0,\"verwaltungseinheitId\":\"06611000\"," +
"\"otyp\":\"Z\",\"koordinatenartId\":5}");
+ compare.put("koordinatenart",
+ "{\"id\":2,\"idfGeoKey\":\"D\",\"koordinatenart\":" +
+ "\"geografisch-gradiell (WGS84)\"}");
}
/**
More information about the Lada-commits
mailing list