mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-30 03:21:23 +00:00
WalletTest: Be more specific about the expected exception in encryptionDecryptionBadPassword().
This commit is contained in:
@@ -2024,8 +2024,10 @@ public class WalletTest extends TestWithWallet {
|
||||
try {
|
||||
encryptedWallet.decrypt(wrongAesKey);
|
||||
fail("Incorrectly decoded wallet with wrong password");
|
||||
} catch (KeyCrypterException ede) {
|
||||
// Expected.
|
||||
} catch (KeyCrypterException.InvalidCipherText e) {
|
||||
// Expected, either this...
|
||||
} catch (KeyCrypterException.PublicPrivateMismatch e) {
|
||||
// ...or this.
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user