#111 的unit test code

This commit is contained in:
Daniel Qian
2015-03-20 14:59:59 +08:00
parent 913f49e470
commit b885d2a1a9
2 changed files with 65 additions and 3 deletions

View File

@@ -36,7 +36,14 @@ public class WxMenu implements Serializable {
public static WxMenu fromJson(InputStream is) {
return WxGsonBuilder.create().fromJson(new InputStreamReader(is), WxMenu.class);
}
@Override
public String toString() {
return "WxMenu{" +
"buttons=" + buttons +
'}';
}
public static class WxMenuButton {
private String type;
@@ -85,7 +92,17 @@ public class WxMenu implements Serializable {
public void setSubButtons(List<WxMenuButton> subButtons) {
this.subButtons = subButtons;
}
@Override
public String toString() {
return "WxMenuButton{" +
"type='" + type + '\'' +
", name='" + name + '\'' +
", key='" + key + '\'' +
", url='" + url + '\'' +
", subButtons=" + subButtons +
'}';
}
}
}