From b3060f8ba40280d438e2b4b06b39aed84c587f7a Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Wed, 2 Oct 2019 14:30:43 +0200 Subject: For {TNVZ, MSG}: Switch to Soap 1.2 - But: Leave MZS Interface at Soap 1.1 - Add ClientFactory.createSOAP11 to ensure that we can talk back to the app. --- src/test/java/at/gv/egiz/moazs/ITEndToEndTest.java | 2 +- src/test/java/at/gv/egiz/moazs/SOAPUtilsTest.java | 14 +++++++------- .../moazs/ITEndToEndTest/msg-delivery-notification.xml | 2 +- .../moazs/ITEndToEndTest/msg-delivery-request-status.xml | 2 +- .../valid-signed-shuffled-soaped-notification.xml | 2 +- .../valid-signed-soaped-notification.xml | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/test') diff --git a/src/test/java/at/gv/egiz/moazs/ITEndToEndTest.java b/src/test/java/at/gv/egiz/moazs/ITEndToEndTest.java index 29b7b53..95c7140 100644 --- a/src/test/java/at/gv/egiz/moazs/ITEndToEndTest.java +++ b/src/test/java/at/gv/egiz/moazs/ITEndToEndTest.java @@ -92,7 +92,7 @@ public class ITEndToEndTest { APP = mockApp(); when(factory.create(any(), same(TNVZServicePort.class))).thenReturn(tnvz); when(factory.create(any(), same(App2ZusePort.class))).thenReturn(msg); - when(factory.create(any(), same(Mzs2AppPortType.class))).thenReturn(APP); + when(factory.createSoap11(any(), same(Mzs2AppPortType.class))).thenReturn(APP); return factory; } diff --git a/src/test/java/at/gv/egiz/moazs/SOAPUtilsTest.java b/src/test/java/at/gv/egiz/moazs/SOAPUtilsTest.java index ff0060e..bf74ac0 100644 --- a/src/test/java/at/gv/egiz/moazs/SOAPUtilsTest.java +++ b/src/test/java/at/gv/egiz/moazs/SOAPUtilsTest.java @@ -15,7 +15,7 @@ public class SOAPUtilsTest { SOAPUtils utils; private static final String SOAP_MESSAGE = - "" + + "" + "\n" + " \n" + " \n" + @@ -38,7 +38,7 @@ public class SOAPUtilsTest { public static final String CLUTTERED_MESSAGE = "\n" + "\n" + " \n" + " \n" + @@ -48,14 +48,14 @@ public class SOAPUtilsTest { "\n"; private static final String MISSING_BODY_MESSAGE = - ""; + ""; private static final String EMPTY_BODY_MESSAGE = - " "; + " "; public static final String EMPTY_APP_DELIVERY_ID_MESSAGE = "\n" + " \n" + " \n" + @@ -66,7 +66,7 @@ public class SOAPUtilsTest { public static final String BLANK_APP_DELIVERY_ID_MESSAGE = "\n" + " \n" + " \n" + diff --git a/src/test/resources/at/gv/egiz/moazs/ITEndToEndTest/msg-delivery-notification.xml b/src/test/resources/at/gv/egiz/moazs/ITEndToEndTest/msg-delivery-notification.xml index 3a90d36..2f99af5 100644 --- a/src/test/resources/at/gv/egiz/moazs/ITEndToEndTest/msg-delivery-notification.xml +++ b/src/test/resources/at/gv/egiz/moazs/ITEndToEndTest/msg-delivery-notification.xml @@ -1,6 +1,6 @@ diff --git a/src/test/resources/at/gv/egiz/moazs/ITSignatureVerifierTest/valid-signed-shuffled-soaped-notification.xml b/src/test/resources/at/gv/egiz/moazs/ITSignatureVerifierTest/valid-signed-shuffled-soaped-notification.xml index 1262c3e..f40a6f0 100644 --- a/src/test/resources/at/gv/egiz/moazs/ITSignatureVerifierTest/valid-signed-shuffled-soaped-notification.xml +++ b/src/test/resources/at/gv/egiz/moazs/ITSignatureVerifierTest/valid-signed-shuffled-soaped-notification.xml @@ -1,5 +1,5 @@ - + https://localhost/example-delivery-system diff --git a/src/test/resources/at/gv/egiz/moazs/ITSignatureVerifierTest/valid-signed-soaped-notification.xml b/src/test/resources/at/gv/egiz/moazs/ITSignatureVerifierTest/valid-signed-soaped-notification.xml index 54e9918..535b2ad 100644 --- a/src/test/resources/at/gv/egiz/moazs/ITSignatureVerifierTest/valid-signed-soaped-notification.xml +++ b/src/test/resources/at/gv/egiz/moazs/ITSignatureVerifierTest/valid-signed-soaped-notification.xml @@ -1,5 +1,5 @@ - + https://localhost/example-delivery-system -- cgit v1.2.3