1
0
mirror of synced 2025-12-21 08:30:11 +08:00

🆕 #2281【小程序】增加小程序加密网络通道支持

This commit is contained in:
pg
2021-09-07 22:44:03 +08:00
committed by GitHub
parent f7f2121fca
commit 3c267bbe61
8 changed files with 223 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
package cn.binarywang.wx.miniapp.api.impl;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.bean.internet.WxMaInternetResponse;
import cn.binarywang.wx.miniapp.test.ApiTestModule;
import com.google.inject.Inject;
import me.chanjar.weixin.common.error.WxErrorException;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
/**
*
* 服务端网络相关接口测试
*
* @author <a href="https://github.com/chutian0124">chutian0124</a>
* @date 2021-09-06
*/
@Test
@Guice(modules = ApiTestModule.class)
public class WxMaInternetServiceImplTest {
@Inject
private WxMaService wxService;
@Test
public void testGetUserEncryptKey() throws WxErrorException {
WxMaInternetResponse response = this.wxService.getInternetService().getUserEncryptKey();
System.out.println(response);
}
}