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

Fix expected exception in roundtrip test

This commit is contained in:
Paul Schaub 2022-11-03 13:04:53 +01:00
parent f6c8d4a65f
commit 5edeae9312

View file

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