🆕 #2837 【企业微信】增加撤回应用消息的接口
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user