| | |
| | | package com.xcong.excoin; |
| | | |
| | | import com.xcong.excoin.modules.contract.dao.ContractHoldOrderDao; |
| | | import com.xcong.excoin.modules.contract.entity.ContractHoldOrderEntity; |
| | | import com.xcong.excoin.modules.contract.service.RabbitOrderService; |
| | | import com.xcong.excoin.modules.member.dao.MemberDao; |
| | | import com.xcong.excoin.modules.member.entity.MemberEntity; |
| | | import com.xcong.excoin.utils.CalculateUtil; |
| | | import com.xcong.excoin.utils.ThreadPoolUtils; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author wzy |
| | |
| | | |
| | | @Resource |
| | | private MemberDao memberDao; |
| | | @Autowired |
| | | private ContractHoldOrderDao contractHoldOrderDao; |
| | | |
| | | @Autowired |
| | | private RabbitOrderService rabbitOrderService; |
| | | |
| | | @Test |
| | | public void forceClosePriceTest() { |
| | |
| | | } |
| | | } |
| | | |
| | | @Test |
| | | public void closingOrderTest() { |
| | | List<Long> ids = new ArrayList<>(); |
| | | ids.add(836L); |
| | | rabbitOrderService.cancelHoldOrder(ids); |
| | | } |
| | | |
| | | |
| | | } |