1
0
mirror of synced 2025-12-20 07:38:27 +08:00

#563 小程序增加修改服务器地址、成员管理 API

* 微信开放平台:1. WxOpenInRedisConfigStorage 支持 JedisPool/JedisSentinelPool 等 Pool<Jedis> 的子类;2. WxOpenInRedisConfigStorage 增加 keyPrefix 以支持可配置的前缀;

* 微信开放平台:增加小程序代码模板库管理

* 小程序:增加代码管理相关 API

* 小程序:增加修改服务器地址、成员管理 API
This commit is contained in:
Charming
2018-04-27 17:36:49 +08:00
committed by Binary Wang
parent 0247486b13
commit ba93544473
6 changed files with 239 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
package cn.binarywang.wx.miniapp.api.impl;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.bean.WxMaDomainAction;
import cn.binarywang.wx.miniapp.test.ApiTestModule;
import com.google.inject.Inject;
import org.testng.annotations.Guice;
import org.testng.annotations.Test;
import static org.testng.Assert.assertNotNull;
/**
* @author <a href="https://github.com/charmingoh">Charming</a>
* @since 2018-04-27 15:38
*/
@Test
@Guice(modules = ApiTestModule.class)
public class WxMaSettingServiceImplTest {
@Inject
private WxMaService wxService;
@Test
public void testModifyDomain() throws Exception {
WxMaDomainAction domainAction = wxService.getSettingService().modifyDomain(WxMaDomainAction
.builder()
.action("get")
.build());
System.out.println(domainAction);
assertNotNull(domainAction);
domainAction.setAction("set");
WxMaDomainAction result = wxService.getSettingService().modifyDomain(domainAction);
System.out.println(result);
}
@Test
public void testBindTester() throws Exception {
wxService.getSettingService().bindTester("WeChatId");
}
@Test
public void testUnbindTester() throws Exception {
wxService.getSettingService().unbindTester("WeChatId");
}
@Test
public void testSetWebViewDomain() throws Exception {
WxMaDomainAction domainAction = wxService.getSettingService().setWebViewDomain(WxMaDomainAction
.builder()
.action("get")
.build());
System.out.println(domainAction);
}
}