OSDN Git Service

refactor
[bytom/bytom-java-sdk.git] / java-sdk / src / test / java / io / bytom / integration / CoreConfigTest.java
1 package io.bytom.integration;
2
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;
8 import org.junit.Test;
9
10 public class CoreConfigTest {
11
12     static Client client;
13
14     static {
15         try {
16             client = TestUtils.generateClient();
17         } catch (BytomException e) {
18             e.printStackTrace();
19         }
20     }
21
22     static CoreConfig.NetInfo netInfo;
23
24     static Integer gasRate;
25
26     @Test
27     public void testNetInfo() throws Exception {
28         netInfo = CoreConfig.getNetInfo(client);
29         Assert.assertNotNull(netInfo);
30     }
31
32     @Test
33     public void testGasRate() throws Exception {
34         gasRate = CoreConfig.getGasRate(client);
35         Assert.assertNotNull(gasRate);
36     }
37
38
39
40 }