aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/at/gv/egiz/moazs
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-10-30 16:06:12 +0100
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-10-30 16:06:12 +0100
commitc7551ed1dbf25fd786500a1516ddec9ec12dcf84 (patch)
tree8546071ba6b009247ec5d9a2098285602647e659 /src/test/java/at/gv/egiz/moazs
parentfca03ea334be5eb34e919a5cc7ca8bc25d79a564 (diff)
downloadmoa-zs-c7551ed1dbf25fd786500a1516ddec9ec12dcf84.tar.gz
moa-zs-c7551ed1dbf25fd786500a1516ddec9ec12dcf84.tar.bz2
moa-zs-c7551ed1dbf25fd786500a1516ddec9ec12dcf84.zip
Refactor: Rename ClientFactory.create Interface
- Reason: Consistency
Diffstat (limited to 'src/test/java/at/gv/egiz/moazs')
-rw-r--r--src/test/java/at/gv/egiz/moazs/DeliveryRequestBackendTest.java4
-rw-r--r--src/test/java/at/gv/egiz/moazs/ITEndToEndTest.java6
-rw-r--r--src/test/java/at/gv/egiz/moazs/ITSSLMsgClientTest.java2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/test/java/at/gv/egiz/moazs/DeliveryRequestBackendTest.java b/src/test/java/at/gv/egiz/moazs/DeliveryRequestBackendTest.java
index ba7c1c8..e1859b5 100644
--- a/src/test/java/at/gv/egiz/moazs/DeliveryRequestBackendTest.java
+++ b/src/test/java/at/gv/egiz/moazs/DeliveryRequestBackendTest.java
@@ -165,11 +165,11 @@ public class DeliveryRequestBackendTest {
when(converter.convert(eq(mzsRequest) )).thenReturn(msgRequest);
when(converter.convert(eq(mzsRequest), any())).thenReturn(msgRequest);
- when(clientFactory.create(any(), same(App2ZusePort.class))).thenReturn(msgClient);
+ when(clientFactory.createSOAP12(any(), same(App2ZusePort.class))).thenReturn(msgClient);
when(msgClient.delivery(msgRequest)).thenReturn(status);
if (tnvzRequest) {
- when(clientFactory.create(any(), same(TNVZServicePort.class))).thenReturn(tnvzClient);
+ when(clientFactory.createSOAP12(any(), same(TNVZServicePort.class))).thenReturn(tnvzClient);
when(tnvzHelper.performQueryPersonRequest(any(), any())).thenReturn(identification);
}
return status;
diff --git a/src/test/java/at/gv/egiz/moazs/ITEndToEndTest.java b/src/test/java/at/gv/egiz/moazs/ITEndToEndTest.java
index 76c0187..7e03a13 100644
--- a/src/test/java/at/gv/egiz/moazs/ITEndToEndTest.java
+++ b/src/test/java/at/gv/egiz/moazs/ITEndToEndTest.java
@@ -112,9 +112,9 @@ public class ITEndToEndTest {
var tnvz = mockTnvz();
var msg = mockMsg();
APP = mockApp();
- when(factory.create(any(), same(TNVZServicePort.class))).thenReturn(tnvz);
- when(factory.create(any(), same(App2ZusePort.class))).thenReturn(msg);
- when(factory.createSoap11(any(), same(Mzs2AppPortType.class))).thenReturn(APP);
+ when(factory.createSOAP12(any(), same(TNVZServicePort.class))).thenReturn(tnvz);
+ when(factory.createSOAP12(any(), same(App2ZusePort.class))).thenReturn(msg);
+ when(factory.createSOAP11(any(), same(Mzs2AppPortType.class))).thenReturn(APP);
return factory;
}
diff --git a/src/test/java/at/gv/egiz/moazs/ITSSLMsgClientTest.java b/src/test/java/at/gv/egiz/moazs/ITSSLMsgClientTest.java
index f880ae3..107ede5 100644
--- a/src/test/java/at/gv/egiz/moazs/ITSSLMsgClientTest.java
+++ b/src/test/java/at/gv/egiz/moazs/ITSSLMsgClientTest.java
@@ -86,7 +86,7 @@ public class ITSSLMsgClientTest {
}
private App2ZusePort createPort(ClientType params) {
- return factory.create(params, App2ZusePort.class);
+ return factory.createSOAP12(params, App2ZusePort.class);
}
// Requirements: