File tree Expand file tree Collapse file tree
main/java/cn/binarywang/wx/miniapp/constant
test/java/cn/binarywang/wx/miniapp/constant Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -923,7 +923,7 @@ public interface XPay {
923923 String QUERY_TRANSFER_ACCOUNT_URL = "https://api.weixin.qq.com/xpay/query_transfer_account?pay_sig=%s" ;
924924 String QUERY_ADVER_FUNDS_URL = "https://api.weixin.qq.com/xpay/query_adver_funds?pay_sig=%s" ;
925925 String CREATE_FUNDS_BILL_URL = "https://api.weixin.qq.com/xpay/create_funds_bill?pay_sig=%s" ;
926- String BIND_TRANSFER_ACCOUNT_URL = "https://api.weixin.qq.com/xpay/bind_transfer_accout ?pay_sig=%s" ;
926+ String BIND_TRANSFER_ACCOUNT_URL = "https://api.weixin.qq.com/xpay/bind_transfer_account ?pay_sig=%s" ;
927927 String QUERY_FUNDS_BILL_URL = "https://api.weixin.qq.com/xpay/query_funds_bill?pay_sig=%s" ;
928928 String QUERY_RECOVER_BILL_URL = "https://api.weixin.qq.com/xpay/query_recover_bill?pay_sig=%s" ;
929929 String GET_COMPLAINT_LIST_URL = "https://api.weixin.qq.com/xpay/get_complaint_list?pay_sig=%s" ;
Original file line number Diff line number Diff line change 1+ package cn .binarywang .wx .miniapp .constant ;
2+
3+ import org .testng .annotations .Test ;
4+
5+ import static org .testng .Assert .assertEquals ;
6+ import static org .testng .Assert .assertTrue ;
7+
8+ public class WxMaApiUrlConstantsXPayTest {
9+
10+ @ Test
11+ public void testBindTransferAccountUrl () {
12+ String url = WxMaApiUrlConstants .XPay .BIND_TRANSFER_ACCOUNT_URL ;
13+ assertEquals (url , "https://api.weixin.qq.com/xpay/bind_transfer_account?pay_sig=%s" );
14+ assertTrue (!url .contains ("bind_transfer_accout" ));
15+ }
16+ }
You can’t perform that action at this time.
0 commit comments