Skip to content

Commit 7c3c22e

Browse files
authored
测试:补充Fund银行卡与二维码URL常量回归校验
1 parent 21d24af commit 7c3c22e

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package me.chanjar.weixin.channel.constant;
2+
3+
import static org.testng.Assert.assertEquals;
4+
5+
import org.testng.annotations.Test;
6+
7+
public class WxChannelApiUrlConstantsTest {
8+
9+
@Test
10+
public void testFundBankAndQrCodeUrlPrefix() {
11+
assertEquals(WxChannelApiUrlConstants.Fund.GET_BANK_BY_NUM_URL,
12+
"https://api.weixin.qq.com/shop/funds/getbankbynum");
13+
assertEquals(WxChannelApiUrlConstants.Fund.GET_BANK_LIST_URL,
14+
"https://api.weixin.qq.com/shop/funds/getbanklist");
15+
assertEquals(WxChannelApiUrlConstants.Fund.GET_CITY_URL,
16+
"https://api.weixin.qq.com/shop/funds/getcity");
17+
assertEquals(WxChannelApiUrlConstants.Fund.GET_PROVINCE_URL,
18+
"https://api.weixin.qq.com/shop/funds/getprovince");
19+
assertEquals(WxChannelApiUrlConstants.Fund.GET_SUB_BANK_URL,
20+
"https://api.weixin.qq.com/shop/funds/getsubbranch");
21+
assertEquals(WxChannelApiUrlConstants.Fund.GET_QRCODE_URL,
22+
"https://api.weixin.qq.com/shop/funds/qrcode/get");
23+
assertEquals(WxChannelApiUrlConstants.Fund.CHECK_QRCODE_URL,
24+
"https://api.weixin.qq.com/shop/funds/qrcode/check");
25+
}
26+
}

0 commit comments

Comments
 (0)