annotate src/test/java/de/intevation/lada/LadaTest.java @ 472:716152f4197a

Added tests for proben kommentar.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 17 Feb 2015 16:44:34 +0100
parents b4e6c5648644
children 934ad215f6d2
rev   line source
451
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
2 * Software engineering by Intevation GmbH
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
3 *
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
7 */
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
8 package de.intevation.lada;
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
9
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
10 import java.net.URL;
463
f6b206b2bdac Improved test logging.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 459
diff changeset
11 import java.util.ArrayList;
f6b206b2bdac Improved test logging.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 459
diff changeset
12 import java.util.List;
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
13
463
f6b206b2bdac Improved test logging.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 459
diff changeset
14 import org.apache.log4j.Logger;
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
15 import org.jboss.arquillian.container.test.api.Deployment;
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
16 import org.jboss.arquillian.container.test.api.RunAsClient;
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
17 import org.jboss.arquillian.junit.Arquillian;
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
18 import org.jboss.arquillian.test.api.ArquillianResource;
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
19 import org.jboss.shrinkwrap.api.ShrinkWrap;
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
20 import org.jboss.shrinkwrap.api.asset.EmptyAsset;
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
21 import org.jboss.shrinkwrap.api.spec.WebArchive;
468
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
22 import org.junit.After;
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
23 import org.junit.Assert;
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
24 import org.junit.FixMethodOrder;
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
25 import org.junit.Test;
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
26 import org.junit.runner.RunWith;
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
27 import org.junit.runners.MethodSorters;
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
28
468
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
29 import de.intevation.lada.test.KommentarP;
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
30 import de.intevation.lada.test.Messung;
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
31 import de.intevation.lada.test.Probe;
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
32 import de.intevation.lada.test.Query;
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
33
451
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
34
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
35 /**
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
36 * Class to test the Lada server.
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
37 *
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
38 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a>
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
39 */
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
40 @RunWith(Arquillian.class)
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
41 @FixMethodOrder(MethodSorters.NAME_ASCENDING)
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
42 public class LadaTest {
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
43
463
f6b206b2bdac Improved test logging.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 459
diff changeset
44 private static String ARCHIVE_NAME = "lada-basis-test.war";
f6b206b2bdac Improved test logging.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 459
diff changeset
45
f6b206b2bdac Improved test logging.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 459
diff changeset
46 private static Logger logger = Logger.getLogger(LadaTest.class);
f6b206b2bdac Improved test logging.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 459
diff changeset
47
472
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
48 private static boolean verboseLogging = false;
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
49
468
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
50 private Probe probeTest;
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
51 private Query queryTest;
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
52 private Messung messungTest;
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
53 private KommentarP kommentarPTest;
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
54
468
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
55 private static List<Protocol> testProtocol;
463
f6b206b2bdac Improved test logging.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 459
diff changeset
56
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
57 public LadaTest() {
468
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
58 probeTest = new Probe();
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
59 queryTest = new Query();
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
60 messungTest = new Messung();
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
61 kommentarPTest = new KommentarP();
463
f6b206b2bdac Improved test logging.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 459
diff changeset
62 testProtocol = new ArrayList<Protocol>();
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
63 }
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
64
451
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
65 /**
89a5dbeb5bd6 Comments.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 448
diff changeset
66 * Create a deployable WAR archive.
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
67 */
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
68 @Deployment(testable=true)
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
69 public static WebArchive createDeployment() throws Exception {
472
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
70 logger.info("\n\n---------- Test Protocol ----------");
463
f6b206b2bdac Improved test logging.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 459
diff changeset
71 logger.info("Create and deploy: " + ARCHIVE_NAME);
f6b206b2bdac Improved test logging.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 459
diff changeset
72 WebArchive archive = ShrinkWrap.create(WebArchive.class, ARCHIVE_NAME)
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
73 .addPackages(true, Package.getPackage("de.intevation.lada"))
437
5011173fd340 Updated logging infrastructure. Using log4j 1.2.17 since log4j2 does not with arquillian.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 434
diff changeset
74 .addAsResource("log4j.properties", "log4j.properties")
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
75 .addAsResource("queryconf.json", "queryconf.json")
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
76 .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
77 .addAsResource("META-INF/test-persistence.xml",
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
78 "META-INF/persistence.xml");
463
f6b206b2bdac Improved test logging.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 459
diff changeset
79 return archive;
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
80 }
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
81
468
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
82 @After
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
83 public final void printLogs() {
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
84 for (Protocol p : testProtocol) {
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
85 logger.info(p.toString(verboseLogging));
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
86 }
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
87 }
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
88
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
89 /**
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
90 * Testing GET Services.
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
91 */
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
92 @Test
448
4986ef8bff19 Updated query service tests. Running as client now.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 442
diff changeset
93 @RunAsClient
468
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
94 public final void testA_ProbeGetAllServices(@ArquillianResource URL baseUrl)
448
4986ef8bff19 Updated query service tests. Running as client now.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 442
diff changeset
95 throws Exception {
468
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
96 this.probeTest.getAllService(baseUrl, testProtocol);
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
97 }
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
98
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
99 /**
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
100 * Testing GET Services.
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
101 */
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
102 @Test
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
103 @RunAsClient
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
104 public final void testA_ProbeGetByIdServices(@ArquillianResource URL baseUrl)
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
105 throws Exception {
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
106 this.probeTest.getByIdService(baseUrl, testProtocol);
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
107 }
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
108
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
109 /**
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
110 * Testing GET Services.
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
111 */
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
112 @Test
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
113 @RunAsClient
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
114 public final void testA_ProbeGetByFilterServices(@ArquillianResource URL baseUrl)
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
115 throws Exception {
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
116 this.probeTest.filterService(baseUrl, testProtocol);
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
117 }
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
118
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
119 /**
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
120 * Testing GET Services.
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
121 */
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
122 @Test
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
123 @RunAsClient
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
124 public final void testA_GetQueryServices(@ArquillianResource URL baseUrl)
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
125 throws Exception {
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
126 this.queryTest.getAllService(baseUrl, testProtocol);
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
127 }
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
128
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
129 /**
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
130 * Testing GET Services.
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
131 */
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
132 @Test
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
133 @RunAsClient
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
134 public final void testA_MessungGetAllServices(@ArquillianResource URL baseUrl)
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
135 throws Exception {
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
136 this.messungTest.getAllService(baseUrl, testProtocol);
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
137 }
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
138
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
139 /**
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
140 * Testing GET Services.
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
141 */
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
142 @Test
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
143 @RunAsClient
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
144 public final void testA_MessungGetByIdServices(@ArquillianResource URL baseUrl)
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
145 throws Exception {
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
146 this.messungTest.getByIdService(baseUrl, testProtocol);
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
147 }
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
148
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
149 /**
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
150 * Testing GET Services.
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
151 */
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
152 @Test
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
153 @RunAsClient
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
154 public final void testA_MessungGetFilterServices(@ArquillianResource URL baseUrl)
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
155 throws Exception {
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
156 this.messungTest.filterService(baseUrl, testProtocol);
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
157 }
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
158
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
159 /**
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
160 * Testing GET Services.
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
161 */
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
162 @Test
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
163 @RunAsClient
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
164 public final void testA_KommentarPGetAllServices(@ArquillianResource URL baseUrl)
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
165 throws Exception {
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
166 this.kommentarPTest.getAllService(baseUrl, testProtocol);
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
167 }
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
168
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
169 /**
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
170 * Testing GET Services.
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
171 */
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
172 @Test
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
173 @RunAsClient
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
174 public final void testA_KommentarPGetByIdServices(@ArquillianResource URL baseUrl)
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
175 throws Exception {
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
176 this.kommentarPTest.getByIdService(baseUrl, testProtocol);
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
177 }
442
a5d8413b0344 Execute tests for probe service.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 437
diff changeset
178
a5d8413b0344 Execute tests for probe service.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 437
diff changeset
179 /**
472
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
180 * Testing GET Services.
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
181 */
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
182 @Test
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
183 @RunAsClient
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
184 public final void testA_KommentarPGetFilterServices(@ArquillianResource URL baseUrl)
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
185 throws Exception {
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
186 this.kommentarPTest.filterService(baseUrl, testProtocol);
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
187 }
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
188
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
189 /**
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
190 * Testing CREATE services.
442
a5d8413b0344 Execute tests for probe service.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 437
diff changeset
191 */
a5d8413b0344 Execute tests for probe service.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 437
diff changeset
192 @Test
a5d8413b0344 Execute tests for probe service.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 437
diff changeset
193 @RunAsClient
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
194 public final void testB_CreateServices(@ArquillianResource URL baseUrl)
442
a5d8413b0344 Execute tests for probe service.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 437
diff changeset
195 throws Exception {
468
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
196 this.probeTest.createService(baseUrl, testProtocol);
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
197 Assert.assertNotNull(this.probeTest.getCreatedProbeId());
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
198 this.messungTest.createService(
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
199 baseUrl,
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
200 testProtocol,
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
201 this.probeTest.getCreatedProbeId());
472
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
202 this.kommentarPTest.createService(
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
203 baseUrl,
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
204 testProtocol,
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
205 this.probeTest.getCreatedProbeId());
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
206 }
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
207
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
208 /**
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
209 * Testing UPDATE services.
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
210 */
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
211 @Test
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
212 @RunAsClient
468
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
213 public final void testC_probeUpdateService(@ArquillianResource URL baseUrl)
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
214 throws Exception {
468
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
215 Assert.assertNotNull(this.probeTest.getCreatedProbeId());
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
216 this.probeTest.updateService(baseUrl, testProtocol);
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
217 }
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
218
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
219 /**
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
220 * Testing UPDATE services.
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
221 */
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
222 @Test
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
223 @RunAsClient
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
224 public final void testC_messungUpdateService(@ArquillianResource URL baseUrl)
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
225 throws Exception {
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
226 Assert.assertNotNull(this.messungTest.getCreatedMessungId());
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
227 this.messungTest.updateService(baseUrl, testProtocol);
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
228 }
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
229
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
230 /**
472
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
231 * Testing UPDATE services.
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
232 */
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
233 @Test
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
234 @RunAsClient
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
235 public final void testC_kommentarPUpdateService(@ArquillianResource URL baseUrl)
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
236 throws Exception {
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
237 Assert.assertNotNull(this.kommentarPTest.getCreatedKommentarId());
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
238 this.kommentarPTest.updateService(baseUrl, testProtocol);
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
239 }
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
240
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
241 /**
459
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
242 * Testing DELETE services.
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
243 */
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
244 @Test
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
245 @RunAsClient
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
246 public final void testD_DeleteServices(@ArquillianResource URL baseUrl)
66414517e25e Make tests based on the http action, not the object type.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 451
diff changeset
247 throws Exception {
472
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
248 Assert.assertNotNull(this.kommentarPTest.getCreatedKommentarId());
716152f4197a Added tests for proben kommentar.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 468
diff changeset
249 this.kommentarPTest.deleteService(baseUrl, testProtocol);
468
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
250 Assert.assertNotNull(this.messungTest.getCreatedMessungId());
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
251 this.messungTest.deleteService(baseUrl, testProtocol);
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
252 Assert.assertNotNull(this.probeTest.getCreatedProbeId());
b4e6c5648644 Improved testing.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 463
diff changeset
253 this.probeTest.deleteService(baseUrl, testProtocol);
442
a5d8413b0344 Execute tests for probe service.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 437
diff changeset
254 }
434
7d527bff842a Added test environment.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff changeset
255 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)