Helius
2020-07-16 8b8bc826f2a40fd81b3919e4a2d1befe079cf455
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
import org.springframework.boot.test.context.SpringBootTest;
 
import javax.annotation.Resource;
 
/**
 * @author wzy
 * @date 2020-05-25
 **/
@SpringBootTest
public class RabbitMqTest {
 
    @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");
    }
}