mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
TransactionInputTest: fix context not initialized
This commit is contained in:
parent
f93a67b0c3
commit
9e5d07cbc6
1 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,7 @@ import org.bitcoinj.script.ScriptBuilder;
|
|||
import org.bitcoinj.testing.FakeTxBuilder;
|
||||
import org.bitcoinj.wallet.SendRequest;
|
||||
import org.bitcoinj.wallet.Wallet;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -35,6 +36,11 @@ import static org.junit.Assert.assertNull;
|
|||
public class TransactionInputTest {
|
||||
private static final NetworkParameters UNITTEST = UnitTestParams.get();
|
||||
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
Context.propagate(new Context());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStandardWalletDisconnect() throws Exception {
|
||||
Wallet w = Wallet.createDeterministic(UNITTEST, ScriptType.P2PKH);
|
||||
|
|
Loading…
Add table
Reference in a new issue