Switch to using SLF4J + the simple logger, allowing people to integrate BitCoinJ with whatever logging system they

are already using.

Resolves issue 16.
This commit is contained in:
Mike Hearn
2011-05-02 12:35:10 +00:00
parent a32a612630
commit 068dcba122
14 changed files with 118 additions and 89 deletions

View File

@@ -18,6 +18,8 @@ package com.google.bitcoin.core;
import com.google.bitcoin.bouncycastle.util.encoders.Hex;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -29,7 +31,9 @@ import java.util.Arrays;
import static org.junit.Assert.*;
public class BlockTest {
private static Logger log = LoggerFactory.getLogger(BlockTest.class);
static final NetworkParameters params = NetworkParameters.testNet();
static final byte[] blockBytes;
static {
@@ -139,8 +143,6 @@ public class BlockTest {
// Note that this will actually check the transactions are equal by doing bitcoin serialization and checking
// the bytestreams are the same! A true "deep equals" is not implemented for Transaction. The primary purpose
// of this test is to ensure no errors occur during the Java serialization/deserialization process.
Utils.LOG(Utils.bytesToHexString(tx.bitcoinSerialize()));
Utils.LOG(Utils.bytesToHexString(tx2.bitcoinSerialize()));
assertEquals(tx, tx2);
}
}