fix BlockTest
@@ -3,6 +3,7 @@ package org.fisco.bcos.channel.test.block;
import org.fisco.bcos.channel.test.TestBase;
import org.fisco.bcos.web3j.protocol.core.DefaultBlockParameter;
import org.fisco.bcos.web3j.protocol.core.methods.response.BcosBlock;
+import org.junit.Test;
import java.io.IOException;
import java.math.BigInteger;
@@ -12,6 +13,7 @@ import static org.junit.Assert.assertTrue;
public class BlockTest extends TestBase {
+ @Test
public void getBlockNumber() throws IOException {
BcosBlock.Block block= web3j.getBlockByNumber(DefaultBlockParameter.valueOf(new BigInteger("1")), true).send().getBlock();
assertEquals( block.getNonce(),new BigInteger("0"));
