mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-02 05:27:17 +00:00
Add a forgotten @Test annotation and fix the expected exception type.
This commit is contained in:
@@ -2400,6 +2400,7 @@ public class WalletTest extends TestWithWallet {
|
||||
assertFalse(wallet.isDeterministicUpgradeRequired());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void upgradeToHDEncrypted() throws Exception {
|
||||
// Create an old-style random wallet.
|
||||
wallet = new Wallet(params);
|
||||
@@ -2411,7 +2412,7 @@ public class WalletTest extends TestWithWallet {
|
||||
wallet.encrypt(crypter, aesKey);
|
||||
try {
|
||||
wallet.freshReceiveKey();
|
||||
} catch (DeterministicUpgradeRequiredException e) {
|
||||
} catch (DeterministicUpgradeRequiresPassword e) {
|
||||
// Expected.
|
||||
}
|
||||
wallet.upgradeToDeterministic(aesKey);
|
||||
|
||||
Reference in New Issue
Block a user