From 4aed369467b2c6486de69ac767475fd305e0e068 Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Wed, 8 May 2019 16:17:48 +0200 Subject: Add "Reject Missing Sender" Test Case --- src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/test/java/at') diff --git a/src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java b/src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java index 8d7ee6f..cdb693a 100644 --- a/src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java +++ b/src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java @@ -67,6 +67,12 @@ public class App2MzsServiceTest { assertEquals(200, response.statusCode()); } + @Test + public void rejectRequestWithoutSender() throws IOException, InterruptedException { + var response = sendDeliveryRequestFile("missingSender.soap"); + assertEquals(500, response.statusCode()); + } + @Test public void rejectFormallyIncorrectDeliveryRequest() throws IOException, InterruptedException { var response = sendDeliveryRequestFile("formallyIncorrectDeliveryRequest.soap"); -- cgit v1.2.3