aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/at/gv/egiz/moazs/ITMsgClientTest
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-06-28 10:29:50 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-06-28 10:29:50 +0200
commitc43f9764b2132ce54a491c1daeeafe6aa4851ef5 (patch)
tree3f900f37b612fffd11a6069dd814f16474957053 /src/test/resources/at/gv/egiz/moazs/ITMsgClientTest
parent7eb6db5c837db22055b51988031920599a7e7270 (diff)
downloadmoa-zs-c43f9764b2132ce54a491c1daeeafe6aa4851ef5.tar.gz
moa-zs-c43f9764b2132ce54a491c1daeeafe6aa4851ef5.tar.bz2
moa-zs-c43f9764b2132ce54a491c1daeeafe6aa4851ef5.zip
Separate Test Suite into Unit- And Integration Tests
Per default, integration tests are excluded from build. They can be included with the `-P integration-test` argument. - Pom: Add maven profile for integration tests. - Rename integration tests (add `IT` prefix). - Move Resources into IT* folders. - Add MsgClientTest to test suite and add assertions to each test case.
Diffstat (limited to 'src/test/resources/at/gv/egiz/moazs/ITMsgClientTest')
-rw-r--r--src/test/resources/at/gv/egiz/moazs/ITMsgClientTest/validDeliveryRequest.xml56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/test/resources/at/gv/egiz/moazs/ITMsgClientTest/validDeliveryRequest.xml b/src/test/resources/at/gv/egiz/moazs/ITMsgClientTest/validDeliveryRequest.xml
new file mode 100644
index 0000000..f1879eb
--- /dev/null
+++ b/src/test/resources/at/gv/egiz/moazs/ITMsgClientTest/validDeliveryRequest.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<DeliveryRequest Version="2.0.0"
+ xmlns="http://reference.e-government.gv.at/namespace/zustellung/msg/phase2/20181206#"
+ xmlns:p="http://reference.e-government.gv.at/namespace/persondata/phase2/20181206#">
+ <Sender>
+ <SenderCorporateBody>
+ <p:Identification>
+ <p:Value>kkvj693+tw99uW8UPuEK9en1LzZItkylPajkUUyJJDWQB78VGPkAuhCEk+TD12yQDD/WRglsf+JfQpjubIs/4l/ptluJ9teF3nwkNlu5Dm7mIjzgW1qxrDyomCmPvVxTWOCBuMUbOWRZBhOq+KvDQAu9Vv9KnqSfjYeDZrpHYu4=</p:Value>
+ <p:Type>urn:publicid:gv:at:cemtoken</p:Type>
+ </p:Identification>
+ <p:CorporateBody>
+ <p:FullName>Bundesministerium für Testzwecke</p:FullName>
+ </p:CorporateBody>
+ </SenderCorporateBody>
+ <ConfirmationAddress>
+ <WebserviceURL>
+ <p:Address>https://authority.gv.at/delivery_notification</p:Address>
+ </WebserviceURL>
+ </ConfirmationAddress>
+ </Sender>
+ <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 type="undefined">
+ <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>
+ </Receiver>
+ <MetaData>
+ <AppDeliveryID>valid-delivery-request-id</AppDeliveryID>
+ <Subject>WichtigeMitteilung</Subject>
+ <DeliveryQuality>RSa</DeliveryQuality>
+ </MetaData>
+ <Attachments>
+ <Attachment>
+ <FileName>brief.xml</FileName>
+ <MimeType>text/xml</MimeType>
+ <Size>123401</Size>
+ <CheckSum>
+ <AlgorithmID>SHA1</AlgorithmID>
+ <Value>9b972c70fdaf5e1b26b3387c87b0ffb72e5940b6</Value>
+ </CheckSum>
+ <URL>https://authority.gv.at/files/73bdf969781ba41fa07df1ff8439cf685c0db1c3</URL>
+ </Attachment>
+ </Attachments>
+</DeliveryRequest> \ No newline at end of file