mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-13 10:57:56 +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.FooWalletExtension;
|
||||||
import org.bitcoinj.testing.TestWithWallet;
|
import org.bitcoinj.testing.TestWithWallet;
|
||||||
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
@@ -13,11 +14,15 @@ public class WalletExtensionsTest extends TestWithWallet {
|
|||||||
super.setUp();
|
super.setUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@After
|
||||||
|
@Override
|
||||||
|
public void tearDown() throws Exception {
|
||||||
|
super.tearDown();
|
||||||
|
}
|
||||||
|
|
||||||
@Test(expected = java.lang.IllegalStateException.class)
|
@Test(expected = java.lang.IllegalStateException.class)
|
||||||
public void duplicateWalletExtensionTest() {
|
public void duplicateWalletExtensionTest() {
|
||||||
wallet.addExtension(new FooWalletExtension("com.whatever.required", true));
|
wallet.addExtension(new FooWalletExtension("com.whatever.required", true));
|
||||||
wallet.addExtension(new FooWalletExtension("com.whatever.required", true));
|
wallet.addExtension(new FooWalletExtension("com.whatever.required", true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user