1 package io.bytom.integration;
3 import io.bytom.TestUtils;
4 import io.bytom.api.AccessToken;
5 import io.bytom.exception.BytomException;
6 import io.bytom.http.Client;
11 public class AccessTokenTest {
17 client = TestUtils.generateClient();
18 } catch (BytomException e) {
24 public void testTokenCreate() throws Exception {
25 AccessToken accessToken = new AccessToken.Builder().setId("sheng").create(client);
30 public void testTokenList() throws Exception {
31 List<AccessToken> tokenList = AccessToken.list(client);
35 public void testTokenCheck() throws Exception {
36 String secret = "5e37378eb59de6b10e60f2247ebf71c4955002e75e0cd31ede3bf48813a0a799";
37 AccessToken.check(client, "sheng", secret);