PayRefundServiceImplTest.java 1013 Bytes
Newer Older
1 2 3
package cn.iocoder.mall.pay.biz.service;

import cn.iocoder.mall.pay.api.PayRefundService;
YunaiV's avatar
YunaiV committed
4
import cn.iocoder.mall.pay.api.dto.refund.PayRefundSubmitDTO;
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE)
public class PayRefundServiceImplTest {

    @Autowired
    private PayRefundService payRefundService;

    @Test
    public void testSubmitRefund() {
        PayRefundSubmitDTO payRefundSubmitDTO = new PayRefundSubmitDTO()
                .setAppId("POd4RC6a")
                .setCreateIp("127.0.0.1")
YunaiV's avatar
YunaiV committed
23
                .setOrderId("13500000")
24 25 26 27 28 29
                .setOrderDescription("测试下退款")
                .setPrice(1);
        payRefundService.submitRefund(payRefundSubmitDTO);
    }

}