🎨 #4087 【微信支付】兼容收付通旧版下单模型
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package com.github.binarywang.wxpay.service;
|
||||
|
||||
import com.github.binarywang.wxpay.bean.ecommerce.TransactionsResult;
|
||||
import com.github.binarywang.wxpay.bean.ecommerce.enums.TradeTypeEnum;
|
||||
import org.testng.Assert;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
/**
|
||||
* Compile-time compatibility checks for the pre-#4014 e-commerce API.
|
||||
*/
|
||||
public class LegacyEcommerceApiCompatibilityTest {
|
||||
|
||||
@Test
|
||||
public void shouldKeepLegacyTransactionResultAndTradeTypeAvailable() {
|
||||
TransactionsResult result = new TransactionsResult();
|
||||
|
||||
Assert.assertNotNull(result);
|
||||
Assert.assertEquals(TradeTypeEnum.JSAPI.name(), "JSAPI");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user