mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-21 02:57:37 +08:00
🎨 优化代码,增加单元测试
This commit is contained in:
@@ -2,6 +2,7 @@ package com.github.binarywang.wxpay.bean.request;
|
|||||||
|
|
||||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
import me.chanjar.weixin.common.annotation.Required;
|
import me.chanjar.weixin.common.annotation.Required;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -16,12 +17,14 @@ import java.util.Map;
|
|||||||
* @author <a href="https://github.com/jmdhappy/xxpay-master">XxPay</a>
|
* @author <a href="https://github.com/jmdhappy/xxpay-master">XxPay</a>
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@Builder(builderMethodName = "newBuilder")
|
@Builder(builderMethodName = "newBuilder")
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@XStreamAlias("xml")
|
@XStreamAlias("xml")
|
||||||
public class WxPayFaceAuthInfoRequest extends BaseWxPayRequest {
|
public class WxPayFaceAuthInfoRequest extends BaseWxPayRequest {
|
||||||
|
private static final long serialVersionUID = -2909189635374300870L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <pre>
|
* <pre>
|
||||||
|
@@ -20,8 +20,6 @@ import com.github.binarywang.wxpay.testbase.XmlWxPayConfig;
|
|||||||
import com.github.binarywang.wxpay.util.XmlConfig;
|
import com.github.binarywang.wxpay.util.XmlConfig;
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.testng.annotations.DataProvider;
|
import org.testng.annotations.DataProvider;
|
||||||
import org.testng.annotations.Guice;
|
import org.testng.annotations.Guice;
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
@@ -619,10 +617,60 @@ public class BaseWxPayServiceImplTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGetWxPayFaceAuthInfo() {
|
public void testGetWxPayFaceAuthInfo() throws WxPayException {
|
||||||
|
XmlConfig.fastMode = true;
|
||||||
|
final WxPayFaceAuthInfoRequest request = new WxPayFaceAuthInfoRequest()
|
||||||
|
.setStoreId("1").setRawdata("111").setNow("111").setVersion("111").setStoreName("2222").setDeviceId("111");
|
||||||
|
request.setSignType("MD5");
|
||||||
|
this.payService.getWxPayFaceAuthInfo(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testFacepay() {
|
public void testFacepay() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetEntPayService() {
|
||||||
|
// no need to test
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetProfitSharingService() {
|
||||||
|
// no need to test
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetRedpackService() {
|
||||||
|
// no need to test
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSetEntPayService() {
|
||||||
|
// no need to test
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testGetPayBaseUrl() {
|
||||||
|
// no need to test
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testParseScanPayNotifyResult() {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSendMiniProgramRedpack() {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSendRedpack() {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testQueryRedpack() {
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testTestQueryRedpack() {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user