Skip to content

Commit f38f31f

Browse files
committed
移动单元测试到类同名包下
1 parent 90b4b5c commit f38f31f

File tree

6 files changed

+142
-2
lines changed

6 files changed

+142
-2
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package me.chanjar.weixin.mp.bean.datacube;
2+
3+
/**
4+
* @author binarywang(https://github.com/binarywang)
5+
* Created by Binary Wang on 2016/8/24.
6+
*/
7+
public class WxDataCubeArticleResult {
8+
}
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
package me.chanjar.weixin.mp.bean.datacube;
2+
3+
import com.google.gson.annotations.SerializedName;
4+
5+
/**
6+
* 图文分析数据接口返回结果对象
7+
* @author binarywang(https://github.com/binarywang)
8+
* Created by Binary Wang on 2016/8/24.
9+
*/
10+
public class WxDataCubeArticleTotal extends WxDataCubeResultBase {
11+
12+
/**
13+
* ref_hour
14+
* 数据的小时,包括从000到2300,分别代表的是[000,100)到[2300,2400),即每日的第1小时和最后1小时
15+
*/
16+
17+
/**
18+
* msgid
19+
* 请注意:这里的msgid实际上是由msgid(图文消息id,这也就是群发接口调用后返回的msg_data_id)和index(消息次序索引)组成, 例如12003_3, 其中12003是msgid,即一次群发的消息的id; 3为index,假设该次群发的图文消息共5个文章(因为可能为多图文),3表示5个中的第3个
20+
*/
21+
@SerializedName("msgid")
22+
private String msgId;
23+
24+
/**
25+
* title
26+
* 图文消息的标题
27+
*/
28+
@SerializedName("title")
29+
private String title;
30+
31+
/**
32+
* int_page_read_user
33+
* 图文页(点击群发图文卡片进入的页面)的阅读人数
34+
*/
35+
@SerializedName("int_page_read_user")
36+
private Integer intPageReadUser;
37+
38+
/**
39+
* int_page_read_count
40+
* 图文页的阅读次数
41+
*/
42+
@SerializedName("int_page_read_count")
43+
private Integer intPageReadCount;
44+
45+
/**
46+
* ori_page_read_user
47+
* 原文页(点击图文页“阅读原文”进入的页面)的阅读人数,无原文页时此处数据为0
48+
*/
49+
@SerializedName("ori_page_read_user")
50+
private Integer oriPageReadUser;
51+
52+
/**
53+
* ori_page_read_count
54+
* 原文页的阅读次数
55+
*/
56+
@SerializedName("ori_page_read_count")
57+
private Integer oriPageReadCount;
58+
59+
/**
60+
* share_scene
61+
* 分享的场景 1代表好友转发 2代表朋友圈 3代表腾讯微博 255代表其他
62+
*/
63+
@SerializedName("share_scene")
64+
private Integer shareScene;
65+
66+
/**
67+
* share_user
68+
* 分享的人数
69+
*/
70+
@SerializedName("share_user")
71+
private Integer shareUser;
72+
73+
/**
74+
* share_count
75+
* 分享的次数
76+
*/
77+
@SerializedName("share_count")
78+
private Integer shareCount;
79+
80+
/**
81+
* add_to_fav_user
82+
* 收藏的人数
83+
*/
84+
@SerializedName("add_to_fav_user")
85+
private Integer addToFavUser;
86+
87+
/**
88+
* add_to_fav_count
89+
* 收藏的次数
90+
*/
91+
@SerializedName("add_to_fav_count")
92+
private Integer addToFavCount;
93+
94+
/**
95+
* user_source
96+
* 在获取图文阅读分时数据时才有该字段,代表用户从哪里进入来阅读该图文。0:会话;1.好友;2.朋友圈;3.腾讯微博;4.历史消息页;5.其他
97+
*/
98+
@SerializedName("user_source")
99+
private Integer userSource;
100+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package me.chanjar.weixin.mp.bean.datacube;
2+
3+
/**
4+
* @author binarywang(https://github.com/binarywang)
5+
* Created by Binary Wang on 2016/8/24.
6+
*/
7+
public class WxDataCubeArticleTotalDetail {
8+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package me.chanjar.weixin.mp.bean.datacube;
2+
3+
import com.google.gson.annotations.SerializedName;
4+
import org.apache.commons.lang3.builder.ToStringBuilder;
5+
import org.apache.commons.lang3.builder.ToStringStyle;
6+
7+
/**
8+
* 统计接口的共用属性类
9+
* @author binarywang(https://github.com/binarywang)
10+
* Created by Binary Wang on 2016/8/25.
11+
*/
12+
public class WxDataCubeResultBase {
13+
@Override
14+
public String toString() {
15+
return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
16+
}
17+
18+
/**
19+
* ref_date
20+
* 数据的日期,需在begin_date和end_date之间
21+
*/
22+
@SerializedName("ref_date")
23+
private String refDate;
24+
}

weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/result/kefu/WxMpKfListTest.java renamed to weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/kefu/result/WxMpKfListTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package me.chanjar.weixin.mp.bean.result.kefu;
1+
package me.chanjar.weixin.mp.bean.kefu.result;
22

33
import org.apache.commons.lang3.builder.ToStringBuilder;
44
import org.testng.Assert;

weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/result/kefu/WxMpKfOnlineListTest.java renamed to weixin-java-mp/src/test/java/me/chanjar/weixin/mp/bean/kefu/result/WxMpKfOnlineListTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package me.chanjar.weixin.mp.bean.result.kefu;
1+
package me.chanjar.weixin.mp.bean.kefu.result;
22

33
import org.apache.commons.lang3.builder.ToStringBuilder;
44
import org.testng.Assert;

0 commit comments

Comments
 (0)