View Javadoc
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  public class HelpTest extends TokenTest {
13  	private HelperApi helperApi;
14  
15  	@Before
16  	public void init() {
17  		helperApi = new HelperApi(tokenManager);
18  	}
19  
20  	@Test
21  	public void getWechatServerIp() throws WeixinException {
22  		List<String> ipList = helperApi.getWechatServerIp();
23  		Assert.assertFalse(ipList.isEmpty());
24  	}
25  
26  	@Test
27  	public void getMenuSetting() throws WeixinException {
28  		System.err.println(helperApi.getMenuSetting());
29  	}
30  
31  	@Test
32  	public void getAutoReplySetting() throws WeixinException {
33  		System.err.println(helperApi.getAutoReplySetting());
34  	}
35  }