#901 企业微信增加获取用于计算agentConfig签名的应用jsapi_ticket的接口
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package me.chanjar.weixin.cp.api.impl;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import me.chanjar.weixin.common.error.WxErrorException;
|
||||
import me.chanjar.weixin.cp.api.ApiTestModule;
|
||||
import me.chanjar.weixin.cp.api.WxCpService;
|
||||
import org.testng.annotations.Guice;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.testng.Assert.*;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Created by BinaryWang on 2019/3/31.
|
||||
* </pre>
|
||||
*
|
||||
* @author <a href="https://github.com/binarywang">Binary Wang</a>
|
||||
*/
|
||||
@Test
|
||||
@Guice(modules = ApiTestModule.class)
|
||||
public class BaseWxCpServiceImplTest {
|
||||
@Inject
|
||||
protected WxCpService wxService;
|
||||
|
||||
@Test
|
||||
public void testGetAgentJsapiTicket() throws WxErrorException {
|
||||
assertThat(this.wxService.getAgentJsapiTicket()).isNotEmpty();
|
||||
assertThat(this.wxService.getAgentJsapiTicket(true)).isNotEmpty();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user