改造查询菜单接口,以支持个性化菜单的conditionalmenu和menuid属性, #126

This commit is contained in:
Binary Wang
2017-01-17 15:15:21 +08:00
parent 5018c31e60
commit 39c7f7cd9f
4 changed files with 100 additions and 5 deletions

View File

@ -8,6 +8,7 @@ import me.chanjar.weixin.common.exception.WxErrorException;
import me.chanjar.weixin.mp.api.ApiTestModule;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.menu.WxMpGetSelfMenuInfoResult;
import me.chanjar.weixin.mp.bean.menu.WxMpMenu;
import org.testng.*;
import org.testng.annotations.*;
@ -137,7 +138,7 @@ public class WxMpMenuServiceImplTest {
@Test(dependsOnMethods = {"testMenuCreate"})
public void testMenuGet() throws WxErrorException {
WxMenu wxMenu = this.wxService.getMenuService().menuGet();
WxMpMenu wxMenu = this.wxService.getMenuService().menuGet();
Assert.assertNotNull(wxMenu);
System.out.println(wxMenu.toJson());
}