1
0
mirror of synced 2025-12-24 02:57:55 +08:00

🆕 #2837 【企业微信】增加撤回应用消息的接口

This commit is contained in:
oldmanl
2022-10-21 13:54:41 +08:00
committed by GitHub
parent b6ad48dff7
commit 791ec8d2db
4 changed files with 39 additions and 0 deletions

View File

@@ -41,6 +41,8 @@ public class WxCpMessageServiceImplTest {
private Runner mockRunner;
private ApiTestModule.WxXmlCpInMemoryConfigStorage configStorage;
private WxCpMessageSendResult wxCpMessageSendResult;
/**
* Sets .
*/
@@ -96,6 +98,7 @@ public class WxCpMessageServiceImplTest {
WxCpMessageSendResult messageSendResult = this.wxService.getMessageService().send(message);
assertNotNull(messageSendResult);
wxCpMessageSendResult = messageSendResult;
System.out.println(messageSendResult);
System.out.println(messageSendResult.getInvalidPartyList());
System.out.println(messageSendResult.getInvalidUserList());
@@ -222,4 +225,13 @@ public class WxCpMessageServiceImplTest {
assertThat(statistics.getStatistics()).isNotNull();
}
/**
* Test message recall
* @throws WxErrorException
*/
@Test(dependsOnMethods = "testSendMessage1")
public void testRecall() throws WxErrorException {
this.wxService.getMessageService().recall(wxCpMessageSendResult.getMsgId());
}
}