Blame view

src/test/java/com/jfinal/weixin/sdk/utils/TestToken.java 823 Bytes
e80df919   atao   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
  package com.jfinal.weixin.sdk.utils;
  
  import com.jfinal.weixin.sdk.utils.RetryUtils.ResultCheck;
  
  import java.io.Serializable;
  
  public class TestToken implements ResultCheck, Serializable {
  
      private static final long serialVersionUID = -7728286550916259295L;
  
      private String t;
      private String tt;
  
      @Override
      public boolean matching() {
          return t.equals(tt);
      }
  
      @Override
      public String toString() {
          return "TestToken [t=" + t + ", tt=" + tt + "]";
      }
  
      public String getT() {
          return t;
      }
  
      public void setT(String t) {
          this.t = t;
      }
  
      public String getTt() {
          return tt;
      }
  
      public void setTt(String tt) {
          this.tt = tt;
      }
  
      @Override
      public String getJson() {
          return JsonUtils.toJson(this);
      }
  
  }