aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/at/gv/egiz/moazs
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-04-08 15:31:10 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-04-08 15:31:10 +0200
commitabbc1e1576b9ac43f71aff6e4ca7697dcb12154a (patch)
tree3f34ed331f4c5b7140a9b32425b31b805114a44d /src/test/java/at/gv/egiz/moazs
parent5975f5a96474dc129f282871f2d7d691cb0a52c9 (diff)
downloadmoa-zs-abbc1e1576b9ac43f71aff6e4ca7697dcb12154a.tar.gz
moa-zs-abbc1e1576b9ac43f71aff6e4ca7697dcb12154a.tar.bz2
moa-zs-abbc1e1576b9ac43f71aff6e4ca7697dcb12154a.zip
Update Codebase to Match MZS Schema Changes
- Important Fix: I forgot to annotate App2MzsService with @Service and autowire the App2MzsService object when creating the endpoint bean. For this reason, Spring did not autowire the dependencies in App2MzsService and I ended up with NullPointerExceptions in the testsuite. - Updated some more namespaces - Add objectFactory bean. objectfactory is autogenerated via the cxf-code-generation plugin, so i cannot annotate it with @Component or @Service. Alternative: create the @Bean by myself - Update the validDeliveryRequest SOAP Message to match the mzs 2.0.0 scheme.
Diffstat (limited to 'src/test/java/at/gv/egiz/moazs')
-rw-r--r--src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java b/src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java
index 5879fa2..6874c75 100644
--- a/src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java
+++ b/src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java
@@ -45,8 +45,7 @@ public class App2MzsServiceTest {
var response = client.send(request, HttpResponse.BodyHandlers.ofString());
logger.info("response.body was " + response.body());
logger.info("response.code was " + response.statusCode());
-
- //TODO Verify response
+ assertThat(response.statusCode()).isEqualTo(200);
}