mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
Fix missing WalletExtensionsTest.tearDown(). This caused a corrupt Wallet.SendRequest.DEFAULT_FEE_PER_KB.
This commit is contained in:
@@ -2,6 +2,7 @@ package org.bitcoinj.core;
|
||||
|
||||
import org.bitcoinj.testing.FooWalletExtension;
|
||||
import org.bitcoinj.testing.TestWithWallet;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -13,11 +14,15 @@ public class WalletExtensionsTest extends TestWithWallet {
|
||||
super.setUp();
|
||||
}
|
||||
|
||||
@After
|
||||
@Override
|
||||
public void tearDown() throws Exception {
|
||||
super.tearDown();
|
||||
}
|
||||
|
||||
@Test(expected = java.lang.IllegalStateException.class)
|
||||
public void duplicateWalletExtensionTest() {
|
||||
wallet.addExtension(new FooWalletExtension("com.whatever.required", true));
|
||||
wallet.addExtension(new FooWalletExtension("com.whatever.required", true));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user