1
0
mirror of synced 2025-12-23 10:39:27 +08:00

增加一点测试代码

This commit is contained in:
Binary Wang
2019-06-30 22:21:47 +08:00
parent 0eb3a642c4
commit 158171c5d1
2 changed files with 28 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
package com.github.binarywang.wxpay.bean.notify;
import org.testng.annotations.Test;
import static org.assertj.core.api.Assertions.assertThat;
/**
* WxPayNotifyResponse 测试.
*
* @author <a href="https://github.com/binarywang">Binary Wang</a>
* @date 2019-06-30
*/
public class WxPayNotifyResponseTest {
@Test
public void testSuccess() {
final String result = WxPayNotifyResponse.success("OK");
assertThat(result).isEqualTo("<xml>\n" +
" <return_code><![CDATA[SUCCESS]]></return_code>\n" +
" <return_msg><![CDATA[OK]]></return_msg>\n" +
"</xml>");
}
}