aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-03-19 12:38:33 +0100
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-03-19 12:38:33 +0100
commit7b3a0d2b5522ae4d43ef384e63d03d07438c23d9 (patch)
treeb58c0caad983f02a133845e59099fbd9d8e0add4 /src/main/java/at
parent4fb466ee906d7442b059bc62fde13463ca6c4173 (diff)
downloadmoa-zs-7b3a0d2b5522ae4d43ef384e63d03d07438c23d9.tar.gz
moa-zs-7b3a0d2b5522ae4d43ef384e63d03d07438c23d9.tar.bz2
moa-zs-7b3a0d2b5522ae4d43ef384e63d03d07438c23d9.zip
Add Unit Test Stub for App2MzsService
- Unit test makes a http request to the service - Fix NPE by adding endpoint.setAdress("/") - Choose better name for App2MzsService
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/gv/egiz/moazs/App2MzsService.java (renamed from src/main/java/at/gv/egiz/moazs/App2MzsPortTypeImplementation.java)2
-rw-r--r--src/main/java/at/gv/egiz/moazs/App2MzsServiceConfig.java (renamed from src/main/java/at/gv/egiz/moazs/App2MzsEndpointConfig.java)5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/App2MzsPortTypeImplementation.java b/src/main/java/at/gv/egiz/moazs/App2MzsService.java
index 244cf4d..ccca4f5 100644
--- a/src/main/java/at/gv/egiz/moazs/App2MzsPortTypeImplementation.java
+++ b/src/main/java/at/gv/egiz/moazs/App2MzsService.java
@@ -8,7 +8,7 @@ import at.gv.e_government.reference.namespace.moazs10.app2mzs_.SuccessType;
import javax.jws.WebParam;
-public class App2MzsPortTypeImplementation implements App2MzsPortType {
+public class App2MzsService implements App2MzsPortType {
@Override
public DeliveryResponseType app2Mzs(
diff --git a/src/main/java/at/gv/egiz/moazs/App2MzsEndpointConfig.java b/src/main/java/at/gv/egiz/moazs/App2MzsServiceConfig.java
index 2d524df..64e353d 100644
--- a/src/main/java/at/gv/egiz/moazs/App2MzsEndpointConfig.java
+++ b/src/main/java/at/gv/egiz/moazs/App2MzsServiceConfig.java
@@ -9,14 +9,15 @@ import org.springframework.context.annotation.Configuration;
import javax.xml.ws.Endpoint;
@Configuration
-public class App2MzsEndpointConfig {
+public class App2MzsServiceConfig {
@Autowired
private Bus bus;
@Bean
public Endpoint endpoint() {
- EndpointImpl endpoint = new EndpointImpl(bus, new App2MzsPortTypeImplementation());
+ EndpointImpl endpoint = new EndpointImpl(bus, new App2MzsService());
+ endpoint.setAddress("/");
endpoint.publish();
return endpoint;
}