TransactionInputTest: fix context not initialized

This commit is contained in:
Andreas Schildbach 2022-08-01 00:10:33 +02:00
parent f93a67b0c3
commit 9e5d07cbc6

View File

@ -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);