diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-05-08 16:14:39 +0200 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-05-08 16:14:39 +0200 |
commit | 5108b1f367dd03d050646623ff3c1711baaf496f (patch) | |
tree | 1709c4e47b6e8eaed1fdf1a89c1f961f6b4662d7 | |
parent | 1c4112e016dbd0a0378c947d556f880c447ffa90 (diff) | |
download | moa-zs-5108b1f367dd03d050646623ff3c1711baaf496f.tar.gz moa-zs-5108b1f367dd03d050646623ff3c1711baaf496f.tar.bz2 moa-zs-5108b1f367dd03d050646623ff3c1711baaf496f.zip |
Remove Obsolete Validation Testcase
- Reason: Converter does not perform validation
-rw-r--r-- | src/test/java/at/gv/egiz/moazs/Mzs2MsgConverterTest.java | 15 | ||||
-rw-r--r-- | src/test/resources/at/gv/egiz/moazs/Mzs2MsgConverterTest/mzsDeliveryRequestWithoutSenderID.xml | 42 |
2 files changed, 0 insertions, 57 deletions
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<DeliveryRequestType> 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 @@ -<?xml version="1.0" encoding="UTF-8"?> -<mzs:DeliveryRequest - xmlns:mzs="http://reference.e-government.gv.at/namespace/zustellung/mzs/app2mzs#" - xmlns:p="http://reference.e-government.gv.at/namespace/zustellung/mzs/persondata#" - xmlns:msg="http://reference.e-government.gv.at/namespace/zustellung/msg/phase2/20181206#"> - <mzs:Sender> - <mzs:WebserviceURL>https://authority.gv.at/delivery_notification</mzs:WebserviceURL> - </mzs:Sender> - <mzs:Receiver> - <p:PhysicalPerson> - <p:Name> - <p:GivenName>Maxi</p:GivenName> - <p:FamilyName>Mustermann1</p:FamilyName> - </p:Name> - <p:DateOfBirth>1984-01-24</p:DateOfBirth> - </p:PhysicalPerson> - <p:PostalAddress> - <p:CountryCode>AT</p:CountryCode> - <p:PostalCode>1010</p:PostalCode> - <p:Municipality>Wien</p:Municipality> - <p:DeliveryAddress> - <p:StreetName>Muststrasse</p:StreetName> - <p:BuildingNumber>10</p:BuildingNumber> - </p:DeliveryAddress> - </p:PostalAddress> - </mzs:Receiver> - <msg:MetaData> - <msg:AppDeliveryID>valid-delivery-request-id</msg:AppDeliveryID> - <msg:Subject>WichtigeMitteilung</msg:Subject> - <msg:DeliveryQuality>RSa</msg:DeliveryQuality> - </msg:MetaData> - <mzs:Payload> - <mzs:DocumentReference>https://authority.gv.at/files/73bdf969781ba41fa07df1ff8439cf685c0db1c3</mzs:DocumentReference> - <mzs:FileName>brief.xml</mzs:FileName> - <mzs:MIMEType>text/xml</mzs:MIMEType> - <msg:CheckSum> - <msg:AlgorithmID>SHA1</msg:AlgorithmID> - <msg:Value>9b972c70fdaf5e1b26b3387c87b0ffb72e5940b6</msg:Value> - </msg:CheckSum> - <mzs:Size>123401</mzs:Size> - </mzs:Payload> -</mzs:DeliveryRequest> |