migrate the remaining deprecated JUnit assertThat() invocations to Hamcrest

This commit is contained in:
Andreas Schildbach 2022-04-14 10:47:23 +02:00
parent d9b484295f
commit 5b8cc744bf
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ import java.util.concurrent.TimeUnit;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
import static org.hamcrest.MatcherAssert.assertThat;
public class SeedPeersTest {
private static final NetworkParameters MAINNET = MainNetParams.get();

View file

@ -44,11 +44,11 @@ import static org.bitcoinj.core.Transaction.SERIALIZE_TRANSACTION_NO_WITNESS;
import static org.bitcoinj.core.Utils.HEX;
import static org.bitcoinj.script.ScriptOpCodes.OP_0;
import static org.bitcoinj.script.ScriptOpCodes.OP_INVALIDOPCODE;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsEqual.equalTo;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;