BloomFilterTest: Tidy up asserts.
@@ -46,7 +46,7 @@ public class BloomFilterTest {
assertTrue(filter.contains(HEX.decode("b9300670b4c5366e95b2699e8b18bc75e5f729c5")));
// Value generated by Bitcoin Core
- assertArrayEquals(HEX.decode("03614e9b050000000000000001"), filter.unsafeBitcoinSerialize());
+ assertEquals("03614e9b050000000000000001", HEX.encode(filter.unsafeBitcoinSerialize()));
}
@Test
@@ -65,7 +65,7 @@ public class BloomFilterTest {
assertTrue(filter.contains(HEX.decode("b9300670b4c5366e95b2699e8b18bc75e5f729c5")));
// Value generated by Bitcoin Core
- assertArrayEquals(HEX.decode("03ce4299050000000100008002"), filter.unsafeBitcoinSerialize());
+ assertEquals("03ce4299050000000100008002", HEX.encode(filter.unsafeBitcoinSerialize()));
}
@Test
@@ -75,7 +75,7 @@ public class BloomFilterTest {
DumpedPrivateKey privKey = DumpedPrivateKey.fromBase58(MAINNET, "5Kg1gnAjaLfKiwhhPpGS3QfRg2m6awQvaj98JCZBZQ5SuS2F15C");
Address addr = LegacyAddress.fromKey(MAINNET, privKey.getKey());
- assertTrue(addr.toString().equals("17Wx1GQfyPTNWpQMHrTwRSMTCAonSiZx9e"));
+ assertEquals("17Wx1GQfyPTNWpQMHrTwRSMTCAonSiZx9e", addr.toString());
KeyChainGroup group = KeyChainGroup.builder(MAINNET).build();
// Add a random key which happens to have been used in a recent generation
@@ -89,6 +89,6 @@ public class BloomFilterTest {
BloomFilter filter = wallet.getBloomFilter(wallet.getBloomFilterElementCount(), 0.001, 0);
// Value generated by Bitcoin Core
- assertArrayEquals(HEX.decode("082ae5edc8e51d4a03080000000000000002"), filter.unsafeBitcoinSerialize());
+ assertEquals("082ae5edc8e51d4a03080000000000000002", HEX.encode(filter.unsafeBitcoinSerialize()));
}
}
