aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-07-31 16:29:19 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-07-31 16:29:19 +0200
commit63baa41b1ea5ce6f2f9a1513522f7ad54ed0ceab (patch)
tree07ea0fd8f8e5272e5385c9edff859c5d77b02bed /src/test/java
parentcb9a76eaafd37f921006822bcfe043655288bc63 (diff)
downloadmoa-zs-63baa41b1ea5ce6f2f9a1513522f7ad54ed0ceab.tar.gz
moa-zs-63baa41b1ea5ce6f2f9a1513522f7ad54ed0ceab.tar.bz2
moa-zs-63baa41b1ea5ce6f2f9a1513522f7ad54ed0ceab.zip
Add Testcase For "Verify Signed Notification"
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/at/gv/egiz/moazs/ITSignatureVerifierTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/java/at/gv/egiz/moazs/ITSignatureVerifierTest.java b/src/test/java/at/gv/egiz/moazs/ITSignatureVerifierTest.java
index e4dbec7..592b108 100644
--- a/src/test/java/at/gv/egiz/moazs/ITSignatureVerifierTest.java
+++ b/src/test/java/at/gv/egiz/moazs/ITSignatureVerifierTest.java
@@ -43,6 +43,16 @@ import java.nio.file.Files;
verifier.accept(signature);
}
+ @Test
+ public void acceptValidDeliveryNotification() throws IOException {
+
+ var path = resourcesPath + "valid-signed-notification.xml";
+ var signature = Files.readAllBytes(new File(path).toPath());
+
+ verifier.accept(signature);
+ }
+
+
@Test(expected = MoaZSException.class)
public void rejectInvalidSignedDeliveryResponse() throws IOException {