mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-30 19:41:24 +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 {
|
try {
|
||||||
encryptedWallet.decrypt(wrongAesKey);
|
encryptedWallet.decrypt(wrongAesKey);
|
||||||
fail("Incorrectly decoded wallet with wrong password");
|
fail("Incorrectly decoded wallet with wrong password");
|
||||||
} catch (KeyCrypterException ede) {
|
} catch (KeyCrypterException.InvalidCipherText e) {
|
||||||
// Expected.
|
// Expected, either this...
|
||||||
|
} catch (KeyCrypterException.PublicPrivateMismatch e) {
|
||||||
|
// ...or this.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user