From 5108b1f367dd03d050646623ff3c1711baaf496f Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Wed, 8 May 2019 16:14:39 +0200 Subject: Remove Obsolete Validation Testcase - Reason: Converter does not perform validation --- .../at/gv/egiz/moazs/Mzs2MsgConverterTest.java | 15 -------- .../mzsDeliveryRequestWithoutSenderID.xml | 42 ---------------------- 2 files changed, 57 deletions(-) delete mode 100644 src/test/resources/at/gv/egiz/moazs/Mzs2MsgConverterTest/mzsDeliveryRequestWithoutSenderID.xml (limited to 'src') diff --git a/src/test/java/at/gv/egiz/moazs/Mzs2MsgConverterTest.java b/src/test/java/at/gv/egiz/moazs/Mzs2MsgConverterTest.java index 29ad62c..d0df4db 100644 --- a/src/test/java/at/gv/egiz/moazs/Mzs2MsgConverterTest.java +++ b/src/test/java/at/gv/egiz/moazs/Mzs2MsgConverterTest.java @@ -57,19 +57,4 @@ public class Mzs2MsgConverterTest { } } - - @Test(expected = IllegalArgumentException.class) - public void testNoSenderID() throws IOException { - - var fileName = basePath + "/mzsDeliveryRequestWithoutSenderID.xml"; - - try (var inputStream = new BufferedInputStream(new FileInputStream(fileName))) { - - JAXBElement mzsRequest = mzsMarshaller.unmarshallXml(inputStream); - - converter.convert(mzsRequest.getValue()); - - } - - } } diff --git a/src/test/resources/at/gv/egiz/moazs/Mzs2MsgConverterTest/mzsDeliveryRequestWithoutSenderID.xml b/src/test/resources/at/gv/egiz/moazs/Mzs2MsgConverterTest/mzsDeliveryRequestWithoutSenderID.xml deleted file mode 100644 index 6006388..0000000 --- a/src/test/resources/at/gv/egiz/moazs/Mzs2MsgConverterTest/mzsDeliveryRequestWithoutSenderID.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - https://authority.gv.at/delivery_notification - - - - - Maxi - Mustermann1 - - 1984-01-24 - - - AT - 1010 - Wien - - Muststrasse - 10 - - - - - valid-delivery-request-id - WichtigeMitteilung - RSa - - - https://authority.gv.at/files/73bdf969781ba41fa07df1ff8439cf685c0db1c3 - brief.xml - text/xml - - SHA1 - 9b972c70fdaf5e1b26b3387c87b0ffb72e5940b6 - - 123401 - - -- cgit v1.2.3