소스 검색

update test

master
Binary Wang 8 년 전
부모
커밋
9f2f2f8844
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. +9
    -2
      weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxPayServiceImplTest.java

+ 9
- 2
weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/WxPayServiceImplTest.java 파일 보기

@@ -35,7 +35,15 @@ public class WxPayServiceImplTest {

@Test
public void testGetPayInfo() throws Exception {
Map<String, String> payInfo = this.payService.getPayInfo(WxPayUnifiedOrderRequest.builder().body("abc").build());
Map<String, String> payInfo = this.payService.getPayInfo(WxPayUnifiedOrderRequest.builder()
.body("我去")
.totalFee(1)
.spbillCreateIp("111111")
.notifyURL("111111")
.tradeType("JSAPI")
.outTradeNo("111111")
.openid(((XmlWxPayConfig) this.payService.getConfig()).getOpenid())
.build());
this.logger.info(payInfo.toString());
}

@@ -226,7 +234,6 @@ public class WxPayServiceImplTest {
.build());
assertNotNull(result);
this.logger.info(result.toString());

}

}

불러오는 중...
취소
저장