1
0
mirror of synced 2025-12-22 09:58:07 +08:00

🐛 #1254 修复小程序自动回复消息有问题的代码

This commit is contained in:
Binary Wang
2019-10-30 22:03:55 +08:00
parent 8dffbd4fdb
commit 7e079f7709
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package cn.binarywang.wx.miniapp.message;
import me.chanjar.weixin.common.api.WxConsts;
import org.testng.annotations.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.testng.Assert.*;
public class WxMaXmlOutMessageTest {
@Test
public void testToXml() {
WxMaXmlOutMessage message = WxMaXmlOutMessage.builder()
.fromUserName("1")
.toUserName("2")
.msgType(WxConsts.XmlMsgType.TRANSFER_CUSTOMER_SERVICE)
.createTime(System.currentTimeMillis() / 1000)
.build();
assertThat(message.toXml()).isNotEmpty();
System.out.println(message.toXml());
}
}