mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-03 13:51:44 +08:00
🐛 修复图文消息留言管理接口中msgDataId类型与群发消息接口的消息id类型不一致问题
This commit is contained in:
@ -31,14 +31,14 @@ public class WxMpCommentServiceImplTest {
|
||||
|
||||
@Test
|
||||
public void testOpen() throws WxErrorException {
|
||||
this.wxService.getCommentService().open(1, null);
|
||||
this.wxService.getCommentService().open(1, 0);
|
||||
this.wxService.getCommentService().open("1", null);
|
||||
this.wxService.getCommentService().open("1", 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testClose() throws WxErrorException {
|
||||
this.wxService.getCommentService().close(1000000001, null);
|
||||
this.wxService.getCommentService().close(1, 0);
|
||||
this.wxService.getCommentService().close("1000000001", null);
|
||||
this.wxService.getCommentService().close("1", 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -66,7 +66,7 @@ public class WxMpCommentServiceImplTest {
|
||||
WxMpCommentService commentService = new WxMpCommentServiceImpl(wxService);
|
||||
doReturn(expectedResponse).when(wxService).post(anyString(), anyString());
|
||||
|
||||
final WxMpCommentListVo commentListVo = commentService.list(1, 1, 1, 1, 1);
|
||||
final WxMpCommentListVo commentListVo = commentService.list("1", 1, 1, 1, 1);
|
||||
assertThat(commentListVo).isNotNull();
|
||||
System.out.println(commentListVo);
|
||||
assertThat(commentListVo.getTotal()).isEqualTo(1);
|
||||
|
||||
Reference in New Issue
Block a user