Helius
2020-12-02 0a29949754a70f73eeeb57fab2c95053a3778011
src/test/java/com/xcong/excoin/RabbitMqTest.java
@@ -1,5 +1,6 @@
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;
@@ -16,9 +17,17 @@
    @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");
    }
}