mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-30 10:07:06 +08:00
将菜单相关的类转移到单独的包里方便管理,以便于某些特殊需求
This commit is contained in:
@ -1,10 +1,13 @@
|
||||
package me.chanjar.weixin.common.bean;
|
||||
|
||||
import me.chanjar.weixin.common.bean.WxMenu.WxMenuButton;
|
||||
import org.testng.Assert;
|
||||
import org.testng.annotations.DataProvider;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import me.chanjar.weixin.common.bean.menu.WxMenu;
|
||||
import me.chanjar.weixin.common.bean.menu.WxMenuButton;
|
||||
import me.chanjar.weixin.common.bean.menu.WxMenuRule;
|
||||
|
||||
@Test
|
||||
public class WxMenuTest {
|
||||
|
||||
@ -66,7 +69,7 @@ public class WxMenuTest {
|
||||
|
||||
menu.getButtons().add(button1);
|
||||
|
||||
WxMenu.WxMenuRule wxMenuRule = new WxMenu.WxMenuRule();
|
||||
WxMenuRule wxMenuRule = new WxMenuRule();
|
||||
wxMenuRule.setTagId("2");
|
||||
wxMenuRule.setSex("1");
|
||||
wxMenuRule.setCountry("中国");
|
||||
|
||||
Reference in New Issue
Block a user