aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-14 13:31:17 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-14 13:31:17 +0200
commit1c252d7fc336831188c628ecdd39cd1b84b0cada (patch)
tree85a1ef5ff6cda3edd661e8d682337bb3511cddde
parent870439300e7596d6833644ec9e6d1f38a1e0b6b5 (diff)
downloadmoa-zs-1c252d7fc336831188c628ecdd39cd1b84b0cada.tar.gz
moa-zs-1c252d7fc336831188c628ecdd39cd1b84b0cada.tar.bz2
moa-zs-1c252d7fc336831188c628ecdd39cd1b84b0cada.zip
Minor Fixes: Remove Unused Imports; Fix of Error Message; Add TODO
-rw-r--r--src/main/java/at/gv/egiz/moazs/App2MzsService.java3
-rw-r--r--src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/App2MzsService.java b/src/main/java/at/gv/egiz/moazs/App2MzsService.java
index 29b75ef..622f1dc 100644
--- a/src/main/java/at/gv/egiz/moazs/App2MzsService.java
+++ b/src/main/java/at/gv/egiz/moazs/App2MzsService.java
@@ -21,6 +21,7 @@ import static at.gv.zustellung.msg.xsd.DeliveryRequestStatusType.deliveryRequest
import static java.lang.String.format;
import static java.util.concurrent.CompletableFuture.supplyAsync;
+//todo : validate Schema in both directions.
@Service
@SchemaValidation(type = SchemaValidation.SchemaValidationType.IN)
public class App2MzsService implements App2MzsPortType {
@@ -79,7 +80,7 @@ public class App2MzsService implements App2MzsPortType {
pipeline.processRequest(appDeliveryID);
return repository.getDeliveryRequestStatus(appDeliveryID)
- .orElseThrow(() -> moaZSException("Could not get a response for AppDeliveryID=%s", appDeliveryID));
+ .orElseThrow(() -> moaZSException("Could not get a response for AppDeliveryID=%s.", appDeliveryID));
}
diff --git a/src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java b/src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java
index 2924bf2..2d4d65f 100644
--- a/src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java
+++ b/src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java
@@ -2,9 +2,6 @@ package at.gv.egiz.moazs;
import at.gv.egiz.moazs.pipeline.DeliveryPipeline;
import at.gv.egiz.moazs.repository.DeliveryRepository;
-import at.gv.zustellung.msg.xsd.DeliveryRequestStatusType;
-import at.gv.zustellung.msg.xsd.DeliveryRequestStatusType.DeliveryRequestStatusTypeBuilder;
-import at.gv.zustellung.msg.xsd.DeliveryRequestStatusType.Success.SuccessBuilder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;