mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-14 10:15:08 +08:00
修复单元测试
This commit is contained in:
@@ -138,7 +138,7 @@ public class WxMpMenuServiceImplTest {
|
||||
System.out.println(wxMenu.toJson());
|
||||
}
|
||||
|
||||
@Test(dependsOnMethods = {"testMenuGet"})
|
||||
@Test(dependsOnMethods = {"testMenuGet","testMenuCreate"})
|
||||
public void testMenuDelete() throws WxErrorException {
|
||||
this.wxService.getMenuService().menuDelete();
|
||||
}
|
||||
@@ -151,18 +151,18 @@ public class WxMpMenuServiceImplTest {
|
||||
button1.setName("今日歌曲");
|
||||
button1.setKey("V1001_TODAY_MUSIC");
|
||||
|
||||
WxMenuButton button2 = new WxMenuButton();
|
||||
button2.setType(WxConsts.BUTTON_MINIPROGRAM);
|
||||
button2.setName("小程序");
|
||||
button2.setAppId("wx286b93c14bbf93aa");
|
||||
button2.setPagePath("pages/lunar/index.html");
|
||||
button2.setUrl("http://mp.weixin.qq.com");
|
||||
// WxMenuButton button2 = new WxMenuButton();
|
||||
// button2.setType(WxConsts.BUTTON_MINIPROGRAM);
|
||||
// button2.setName("小程序");
|
||||
// button2.setAppId("wx286b93c14bbf93aa");
|
||||
// button2.setPagePath("pages/lunar/index.html");
|
||||
// button2.setUrl("http://mp.weixin.qq.com");
|
||||
|
||||
WxMenuButton button3 = new WxMenuButton();
|
||||
button3.setName("菜单");
|
||||
|
||||
menu.getButtons().add(button1);
|
||||
menu.getButtons().add(button2);
|
||||
// menu.getButtons().add(button2);
|
||||
menu.getButtons().add(button3);
|
||||
|
||||
WxMenuButton button31 = new WxMenuButton();
|
||||
|
Reference in New Issue
Block a user