Sfoglia il codice sorgente

add test for reverseOdrer method

master
Binary Wang 8 anni fa
parent
commit
9acb01cd17
2 ha cambiato i file con 20 aggiunte e 1 eliminazioni
  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 Vedi File

@@ -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 Vedi File

@@ -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());

}

}

Caricamento…
Annulla
Salva