Skip to content

Commit

Permalink
Wechat-Group#3279【小程序】修复测试类的var语法糖为具体返回类
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuangzibin committed May 20, 2024
1 parent dd6452d commit c5ffb97
Showing 1 changed file with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

Expand All @@ -30,7 +31,7 @@ public void testGetRole() throws WxErrorException {
WxMaPromotionGetRoleRequest request = WxMaPromotionGetRoleRequest.builder()
.roleId(1L)
.build();
var response = wxService.getWxMaPromotionService().getRole(request);
WxMaPromotionGetRoleResponse response = wxService.getWxMaPromotionService().getRole(request);
assertThat(response).isNotNull();
}

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

Expand All @@ -59,7 +60,7 @@ public void testAddPromoter() throws WxErrorException {
WxMaPromotionAddPromoterRequest request = WxMaPromotionAddPromoterRequest.builder()
.promoterList(Collections.singletonList(promoter))
.build();
var response = wxService.getWxMaPromotionService().addPromoter(request);
WxMaPromotionAddPromoterResponse response = wxService.getWxMaPromotionService().addPromoter(request);
assertThat(response).isNotNull();
}

Expand All @@ -76,7 +77,7 @@ public void testGetPromoter() throws WxErrorException {
.authStatus(null)
.declStatus("1")
.build();
var response = wxService.getWxMaPromotionService().getPromoter(request);
WxMaPromotionGetPromoterResponse response = wxService.getWxMaPromotionService().getPromoter(request);
assertThat(response).isNotNull();
}

Expand All @@ -91,7 +92,7 @@ public void testUpdatePromoter() throws WxErrorException {
.phone("15600000000")
.declStatus("1")
.build();
var response = wxService.getWxMaPromotionService().updatePromoter(request);
WxMaPromotionUpdatePromoterResponse response = wxService.getWxMaPromotionService().updatePromoter(request);
assertThat(response).isNotNull();
}

Expand All @@ -101,7 +102,7 @@ public void testGetInvitationMaterial() throws WxErrorException {
.roleId(1L)
.invitationType(0L)
.build();
var response = wxService.getWxMaPromotionService().getInvitationMaterial(request);
WxMaPromotionGetInvitationMaterialResponse response = wxService.getWxMaPromotionService().getInvitationMaterial(request);
assertThat(response).isNotNull();
}

Expand All @@ -117,7 +118,7 @@ public void testSendMsg() throws WxErrorException {
.retailId(null)
.id(null)
.build();
var response = wxService.getWxMaPromotionService().sendMsg(request);
WxMaPromotionSendMsgResponse response = wxService.getWxMaPromotionService().sendMsg(request);
assertThat(response).isNotNull();
}

Expand All @@ -130,7 +131,7 @@ public void testSingleSendMsg() throws WxErrorException {
.path("")
.openid("")
.build();
var response = wxService.getWxMaPromotionService().singleSendMsg(request);
WxMaPromotionSingleSendMsgResponse response = wxService.getWxMaPromotionService().singleSendMsg(request);
assertThat(response).isNotNull();
}

Expand All @@ -139,7 +140,7 @@ public void testGetMsg() throws WxErrorException {
WxMaPromotionGetMsgRequest request = WxMaPromotionGetMsgRequest.builder()
.msgId("")
.build();
var response = wxService.getWxMaPromotionService().getMsg(request);
WxMaPromotionGetMsgResponse response = wxService.getWxMaPromotionService().getMsg(request);
assertThat(response).isNotNull();
}

Expand All @@ -153,7 +154,7 @@ public void testGetMsgClickData() throws WxErrorException {
.beginSendTime(1715938250L)
.endSendTime(1715938250L)
.build();
var response = wxService.getWxMaPromotionService().getMsgClickData(request);
WxMaPromotionGetMsgClickDataResponse response = wxService.getWxMaPromotionService().getMsgClickData(request);
assertThat(response).isNotNull();
}

Expand All @@ -167,7 +168,7 @@ public void testGetShareMaterial() throws WxErrorException {
.shareType(0L)
.envVersion("")
.build();
var response = wxService.getWxMaPromotionService().getShareMaterial(request);
WxMaPromotionGetShareMaterialResponse response = wxService.getWxMaPromotionService().getShareMaterial(request);
assertThat(response).isNotNull();
}

Expand All @@ -182,7 +183,7 @@ public void testGetRelation() throws WxErrorException {
.startId("")
.needUnionid(0L)
.build();
var response = wxService.getWxMaPromotionService().getRelation(request);
WxMaPromotionGetRelationResponse response = wxService.getWxMaPromotionService().getRelation(request);
assertThat(response).isNotNull();
}

Expand All @@ -198,7 +199,7 @@ public void testGetOrder() throws WxErrorException {
.needUnionid(0L)
.date(1715938250L)
.build();
var response = wxService.getWxMaPromotionService().getOrder(request);
WxMaPromotionGetOrderResponse response = wxService.getWxMaPromotionService().getOrder(request);
assertThat(response).isNotNull();
}
}

0 comments on commit c5ffb97

Please sign in to comment.