mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2024-11-20 02:09:29 +01:00
TransactionInputTest: fix context not initialized
This commit is contained in:
parent
f93a67b0c3
commit
9e5d07cbc6
@ -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…
Reference in New Issue
Block a user