1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-26 06:12:06 +01:00

Fix expected exception in roundtrip test

This commit is contained in:
Paul Schaub 2022-11-03 13:04:53 +01:00
parent 963b678a9e
commit 6dcc1e68cd

View file

@ -512,7 +512,7 @@ public class EncryptDecryptRoundTripTest {
"-----END PGP MESSAGE-----").getBytes(StandardCharsets.UTF_8);
SessionKey wrongSessionKey = SessionKey.fromString("9:63F741E7FB60247BE59C64158573308F727236482DB7653908C95839E4166AAE");
assertThrows(SOPGPException.BadData.class, () ->
assertThrows(SOPGPException.CannotDecrypt.class, () ->
sop.decrypt().withSessionKey(wrongSessionKey).ciphertext(ciphertext));
}