mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-03 21:59:05 +08:00
改造查询菜单接口,以支持个性化菜单的conditionalmenu和menuid属性, #126
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user