diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-04-18 14:52:34 +0200 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-04-18 14:52:34 +0200 |
commit | 91e6adb606382f10985777d225e4f62f0b624ceb (patch) | |
tree | b14cd7037097f82451a929e00da71c161ad2dde9 /src/main/java/at | |
parent | aed1250912476f47fd772b0cedd20c850cdcff6e (diff) | |
download | moa-zs-91e6adb606382f10985777d225e4f62f0b624ceb.tar.gz moa-zs-91e6adb606382f10985777d225e4f62f0b624ceb.tar.bz2 moa-zs-91e6adb606382f10985777d225e4f62f0b624ceb.zip |
Mock Pipeline in App2MzsServiceTests
- Reason: App2MzsServiceTests only run through the app2mzs front end
without doing any pipeline work.
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java b/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java index 3652662..20252ff 100644 --- a/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java +++ b/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java @@ -1,8 +1,6 @@ package at.gv.egiz.moazs.pipeline; -import at.gv.e_government.reference.namespace.zustellung.msg.phase2._20181206_.DeliveryRequestStatusType; -import at.gv.e_government.reference.namespace.zustellung.msg.phase2._20181206_.ObjectFactory; import at.gv.e_government.reference.namespace.zustellung.mzs.app2mzs_.DeliveryRequestType; import at.gv.egiz.moazs.repository.DeliveryRepository; import org.springframework.beans.factory.annotation.Autowired; @@ -32,18 +30,9 @@ public class SameThreadDeliveryPipeline implements DeliveryPipeline { "Request with appDeliveryId = {} does not exist.", appDeliveryId)); } - //do some logic. + //do business logic //store response to repository - repository.add(generateBogusStatus(appDeliveryId)); } - private DeliveryRequestStatusType generateBogusStatus(String appDeliveryId) { - final var factory = new ObjectFactory(); - final var status = factory.createDeliveryRequestStatusType(); - final var success = factory.createDeliveryRequestStatusTypeSuccess(); - success.setAppDeliveryID(appDeliveryId); - status.setSuccess(success); - return status; - } } |