1 package io.bytom.integration;
3 import io.bytom.TestUtils;
4 import io.bytom.api.CoreConfig;
5 import io.bytom.offline.exception.BytomException;
6 import io.bytom.http.Client;
7 import org.junit.Assert;
10 public class CoreConfigTest {
16 client = TestUtils.generateClient();
17 } catch (BytomException e) {
22 static CoreConfig.NetInfo netInfo;
24 static Integer gasRate;
27 public void testNetInfo() throws Exception {
28 netInfo = CoreConfig.getNetInfo(client);
29 Assert.assertNotNull(netInfo);
33 public void testGasRate() throws Exception {
34 gasRate = CoreConfig.getGasRate(client);
35 Assert.assertNotNull(gasRate);