소스 검색

add test for reverseOdrer method

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

+ 1
- 1
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/config/WxPayConfig.java 파일 보기

@@ -135,7 +135,7 @@ public class WxPayConfig {

public SSLContext initSSLContext() {
if (null == mchId) {
throw new IllegalArgumentException("请確保mchId已設置");
throw new IllegalArgumentException("请确保商户号mch_id已设置");
}

File file = new File(this.keyPath);


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

@@ -210,4 +210,23 @@ public class WxPayServiceImplTest {
.build());
this.logger.info(result.toString());
}

@Test
public void testGetConfig() throws Exception {
}

@Test
public void testSetConfig() throws Exception {
}

@Test
public void testReverseOrder() throws Exception {
WxPayOrderReverseResult result = this.payService.reverseOrder(WxPayOrderReverseRequest.newBuilder()
.outTradeNo("1111")
.build());
assertNotNull(result);
this.logger.info(result.toString());

}

}

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