mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 22:58:32 +01:00
Add a forgotten @Test annotation and fix the expected exception type.
This commit is contained in:
parent
11d8d57a1a
commit
704575df1c
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue