package com.ruioyi.shop;
|
|
|
import com.github.binarywang.wxpay.bean.ecommerce.ProfitSharingReceiverRequest;
|
import com.github.binarywang.wxpay.bean.ecommerce.ProfitSharingReceiverResult;
|
import com.ruoyi.shop.RuoYiShopApplication;
|
import com.ruoyi.shop.service.shop.ShopService;
|
import org.junit.Test;
|
import org.junit.runner.RunWith;
|
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
import javax.annotation.Resource;
|
|
/**
|
* @ClassName systemTest
|
* @Description TODO
|
* @Author jqs
|
* @Date 2023/6/7 10:57
|
* @Version 1.0
|
*/
|
@RunWith(SpringJUnit4ClassRunner.class)
|
@SpringBootTest(classes = RuoYiShopApplication.class)
|
public class shopTest {
|
|
@Resource
|
private ShopService shopService;
|
|
@Test
|
public void main() {
|
|
ProfitSharingReceiverRequest request = new ProfitSharingReceiverRequest();
|
request.setAccount("1650744551");
|
request.setName("泸州矗众信息科技有限责任公司");
|
ProfitSharingReceiverResult result = shopService.addProfitSharingReceiver(request);
|
System.out.println(result);
|
}
|
}
|