Skip to content

Commit

Permalink
tests: fix context
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering committed Mar 21, 2024
1 parent b548efa commit 4e9aceb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.bitcoinj.wallet;

import org.bitcoinj.core.Coin;
import org.bitcoinj.core.Context;
import org.bitcoinj.params.TestNet3Params;
import org.junit.Test;

import java.io.IOException;
Expand All @@ -11,6 +13,7 @@
public class CoinJoinExtensionTest {

@Test public void emptyWalletProgressTest() {
new Context(TestNet3Params.get());
try (InputStream is = getClass().getResourceAsStream("coinjoin-unmixed.wallet")) {
WalletEx wallet = (WalletEx) new WalletProtobufSerializer().readWallet(is);
assertEquals(Coin.valueOf(99999628), wallet.getBalance(Wallet.BalanceType.ESTIMATED));
Expand Down

0 comments on commit 4e9aceb

Please sign in to comment.