aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/at
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-08 16:17:48 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-08 16:17:48 +0200
commit4aed369467b2c6486de69ac767475fd305e0e068 (patch)
tree57cfde8704e38462832068157535c947a92744c0 /src/test/java/at
parent2f76971dbb71d3255ef19ea31cee13a27136c4d1 (diff)
downloadmoa-zs-4aed369467b2c6486de69ac767475fd305e0e068.tar.gz
moa-zs-4aed369467b2c6486de69ac767475fd305e0e068.tar.bz2
moa-zs-4aed369467b2c6486de69ac767475fd305e0e068.zip
Add "Reject Missing Sender" Test Case
Diffstat (limited to 'src/test/java/at')
-rw-r--r--src/test/java/at/gv/egiz/moazs/App2MzsServiceTest.java6
1 files changed, 6 insertions, 0 deletions
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
@@ -68,6 +68,12 @@ public class App2MzsServiceTest {
}
@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");
assertEquals(500, response.statusCode());