mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-15 17:02:06 +01:00
Fix expected exception in roundtrip test
This commit is contained in:
parent
f6c8d4a65f
commit
5edeae9312
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue