1
0
mirror of synced 2025-12-23 18:48:00 +08:00

#1129 新增小程序插件管理相关接口

This commit is contained in:
ArBing
2019-07-24 10:12:11 +08:00
committed by Binary Wang
parent 364aa0594f
commit 0196764079
6 changed files with 196 additions and 1 deletions

View File

@@ -0,0 +1,39 @@
package cn.binarywang.wx.miniapp.api.impl;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.bean.WxMaPluginListResult;
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;
@Test
@Guice(modules = ApiTestModule.class)
public class WxMaPluginServiceImplTest {
@Inject
private WxMaService wxService;
@Test
public void testApplyPlugin() throws Exception {
this.wxService.getPluginService().applyPlugin("wx4418e3e031e551be", null);
}
@Test
public void testGetPluginList() throws Exception {
WxMaPluginListResult result = this.wxService.getPluginService().getPluginList();
assertNotNull(result);
System.out.println(result.toString());
}
@Test
public void testUnbindPlugin() throws Exception {
this.wxService.getPluginService().unbindPlugin("wx4418e3e031e551be");
}
@Test
public void testUpdatePlugin() throws Exception {
this.wxService.getPluginService().updatePlugin("wx4418e3e031e551be", "2.0.2");
}
}