将菜单相关的类转移到单独的包里方便管理,以便于某些特殊需求

This commit is contained in:
BinaryWang
2016-08-02 19:48:06 +08:00
parent 6643498a66
commit f7a64a7cf6
13 changed files with 300 additions and 274 deletions

View File

@ -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("中国");