mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-22 19:08:00 +01:00
Fix expected exception in roundtrip test
This commit is contained in:
parent
963b678a9e
commit
6dcc1e68cd
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