diff options
Diffstat (limited to 'src/test/java/at/gv/egiz/moazs')
-rw-r--r-- | src/test/java/at/gv/egiz/moazs/ITSignatureVerifierTest.java | 10 |
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 { |