1 package com.foxinmy.weixin4j.mp.test;
2
3 import java.util.List;
4
5 import org.junit.Assert;
6 import org.junit.Before;
7 import org.junit.Test;
8
9 import com.foxinmy.weixin4j.exception.WeixinException;
10 import com.foxinmy.weixin4j.mp.api.HelperApi;
11
12
13
14
15
16
17
18
19
20
21 public class HelperTest extends TokenTest {
22 private HelperApi helperApi;
23
24 @Before
25 public void init() {
26 helperApi = new HelperApi(tokenManager);
27 }
28
29 @Test
30 public void getWechatServerIp() throws WeixinException {
31 List<String> ipList = helperApi.getWechatServerIp();
32 Assert.assertFalse(ipList.isEmpty());
33 }
34
35 @Test
36 public void getMenuSetting() throws WeixinException {
37 System.err.println(helperApi.getMenuSetting());
38 }
39
40 @Test
41 public void getAutoReplySetting() throws WeixinException {
42 System.err.println(helperApi.getAutoReplySetting());
43 }
44
45 @Test
46 public void clearQuota() throws WeixinException {
47 System.err.println(helperApi.clearQuota(weixinAccount.getId()));
48 }
49 }