From 91e6adb606382f10985777d225e4f62f0b624ceb Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Thu, 18 Apr 2019 14:52:34 +0200 Subject: Mock Pipeline in App2MzsServiceTests - Reason: App2MzsServiceTests only run through the app2mzs front end without doing any pipeline work. --- .../gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/main/java') 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; - } } -- cgit v1.2.3