| | |
| | | package com.xcong.excoin; |
| | | |
| | | import com.xcong.excoin.rabbit.pricequeue.WebsocketPriceService; |
| | | import com.xcong.excoin.rabbit.producer.TestProducer; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Autowired |
| | | private TestProducer testProducer; |
| | | @Resource |
| | | private WebsocketPriceService websocketPriceService; |
| | | |
| | | @Test |
| | | public void sendTestMsg() { |
| | | testProducer.sendTestMsg("this is test msg"); |
| | | } |
| | | |
| | | @Test |
| | | public void bombTest() { |
| | | |
| | | websocketPriceService.comparePriceDesc("BTC/USDT", "9608"); |
| | | } |
| | | } |