Skip to content

Commit 8242de6

Browse files
authored
🎨 增加微信接口里包含错误拼写单词的地址校验的单元测试
1 parent 3f2349f commit 8242de6

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package cn.binarywang.wx.miniapp.constant;
2+
3+
import org.testng.annotations.Test;
4+
5+
import static org.testng.Assert.assertEquals;
6+
7+
public class WxMaApiUrlConstantsXPayTest {
8+
9+
@Test
10+
public void testBindTransferAccountUrl() {
11+
// 官方文档接口路径本身拼写为 accout,保持与官方文档一致
12+
String url = WxMaApiUrlConstants.XPay.BIND_TRANSFER_ACCOUNT_URL;
13+
assertEquals(url, "https://api.weixin.qq.com/xpay/bind_transfer_accout?pay_sig=%s");
14+
}
15+
}

0 commit comments

Comments
 (0)