Skip to content

Commit 08c730e

Browse files
authored
🎨 fix var to specific class name
1 parent dd6452d commit 08c730e

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/api/impl/WxMaPromotionServiceTest.java

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import cn.binarywang.wx.miniapp.api.WxMaService;
44
import cn.binarywang.wx.miniapp.bean.promoter.request.*;
5+
import cn.binarywang.wx.miniapp.bean.promoter.response.*;
56
import com.google.inject.Inject;
67
import me.chanjar.weixin.common.error.WxErrorException;
78
import org.testng.annotations.Test;
@@ -21,7 +22,7 @@ public void testAddRole() throws WxErrorException {
2122
.name("推广员1号名字")
2223
.desc("推广员1号描述")
2324
.build();
24-
var response = wxService.getWxMaPromotionService().addRole(request);
25+
WxMaPromotionAddRoleResponse response = wxService.getWxMaPromotionService().addRole(request);
2526
assertThat(response).isNotNull();
2627
}
2728

@@ -30,7 +31,7 @@ public void testGetRole() throws WxErrorException {
3031
WxMaPromotionGetRoleRequest request = WxMaPromotionGetRoleRequest.builder()
3132
.roleId(1L)
3233
.build();
33-
var response = wxService.getWxMaPromotionService().getRole(request);
34+
WxMaPromotionGetRoleResponse response = wxService.getWxMaPromotionService().getRole(request);
3435
assertThat(response).isNotNull();
3536
}
3637

@@ -41,7 +42,7 @@ public void testUpdateRole() throws WxErrorException {
4142
.name("推广员1号名字")
4243
.desc("推广员1号描述")
4344
.build();
44-
var response = wxService.getWxMaPromotionService().updateRole(request);
45+
WxMaPromotionUpdateRoleResponse response = wxService.getWxMaPromotionService().updateRole(request);
4546
assertThat(response).isNotNull();
4647
}
4748

@@ -59,7 +60,7 @@ public void testAddPromoter() throws WxErrorException {
5960
WxMaPromotionAddPromoterRequest request = WxMaPromotionAddPromoterRequest.builder()
6061
.promoterList(Collections.singletonList(promoter))
6162
.build();
62-
var response = wxService.getWxMaPromotionService().addPromoter(request);
63+
WxMaPromotionAddPromoterResponse response = wxService.getWxMaPromotionService().addPromoter(request);
6364
assertThat(response).isNotNull();
6465
}
6566

@@ -76,7 +77,7 @@ public void testGetPromoter() throws WxErrorException {
7677
.authStatus(null)
7778
.declStatus("1")
7879
.build();
79-
var response = wxService.getWxMaPromotionService().getPromoter(request);
80+
WxMaPromotionGetPromoterResponse response = wxService.getWxMaPromotionService().getPromoter(request);
8081
assertThat(response).isNotNull();
8182
}
8283

@@ -91,7 +92,7 @@ public void testUpdatePromoter() throws WxErrorException {
9192
.phone("15600000000")
9293
.declStatus("1")
9394
.build();
94-
var response = wxService.getWxMaPromotionService().updatePromoter(request);
95+
WxMaPromotionUpdatePromoterResponse response = wxService.getWxMaPromotionService().updatePromoter(request);
9596
assertThat(response).isNotNull();
9697
}
9798

@@ -101,7 +102,7 @@ public void testGetInvitationMaterial() throws WxErrorException {
101102
.roleId(1L)
102103
.invitationType(0L)
103104
.build();
104-
var response = wxService.getWxMaPromotionService().getInvitationMaterial(request);
105+
WxMaPromotionGetInvitationMaterialResponse response = wxService.getWxMaPromotionService().getInvitationMaterial(request);
105106
assertThat(response).isNotNull();
106107
}
107108

@@ -117,7 +118,7 @@ public void testSendMsg() throws WxErrorException {
117118
.retailId(null)
118119
.id(null)
119120
.build();
120-
var response = wxService.getWxMaPromotionService().sendMsg(request);
121+
WxMaPromotionSendMsgResponse response = wxService.getWxMaPromotionService().sendMsg(request);
121122
assertThat(response).isNotNull();
122123
}
123124

@@ -130,7 +131,7 @@ public void testSingleSendMsg() throws WxErrorException {
130131
.path("")
131132
.openid("")
132133
.build();
133-
var response = wxService.getWxMaPromotionService().singleSendMsg(request);
134+
WxMaPromotionSingleSendMsgResponse response = wxService.getWxMaPromotionService().singleSendMsg(request);
134135
assertThat(response).isNotNull();
135136
}
136137

@@ -139,7 +140,7 @@ public void testGetMsg() throws WxErrorException {
139140
WxMaPromotionGetMsgRequest request = WxMaPromotionGetMsgRequest.builder()
140141
.msgId("")
141142
.build();
142-
var response = wxService.getWxMaPromotionService().getMsg(request);
143+
WxMaPromotionGetMsgResponse response = wxService.getWxMaPromotionService().getMsg(request);
143144
assertThat(response).isNotNull();
144145
}
145146

@@ -153,7 +154,7 @@ public void testGetMsgClickData() throws WxErrorException {
153154
.beginSendTime(1715938250L)
154155
.endSendTime(1715938250L)
155156
.build();
156-
var response = wxService.getWxMaPromotionService().getMsgClickData(request);
157+
WxMaPromotionGetMsgClickDataResponse response = wxService.getWxMaPromotionService().getMsgClickData(request);
157158
assertThat(response).isNotNull();
158159
}
159160

@@ -167,7 +168,7 @@ public void testGetShareMaterial() throws WxErrorException {
167168
.shareType(0L)
168169
.envVersion("")
169170
.build();
170-
var response = wxService.getWxMaPromotionService().getShareMaterial(request);
171+
WxMaPromotionGetShareMaterialResponse response = wxService.getWxMaPromotionService().getShareMaterial(request);
171172
assertThat(response).isNotNull();
172173
}
173174

@@ -182,7 +183,7 @@ public void testGetRelation() throws WxErrorException {
182183
.startId("")
183184
.needUnionid(0L)
184185
.build();
185-
var response = wxService.getWxMaPromotionService().getRelation(request);
186+
WxMaPromotionGetRelationResponse response = wxService.getWxMaPromotionService().getRelation(request);
186187
assertThat(response).isNotNull();
187188
}
188189

@@ -198,7 +199,7 @@ public void testGetOrder() throws WxErrorException {
198199
.needUnionid(0L)
199200
.date(1715938250L)
200201
.build();
201-
var response = wxService.getWxMaPromotionService().getOrder(request);
202+
WxMaPromotionGetOrderResponse response = wxService.getWxMaPromotionService().getOrder(request);
202203
assertThat(response).isNotNull();
203204
}
204205
}

0 commit comments

Comments
 (0)