Helius
2020-06-05 00e9229744cb8f92b7cb0bcdf38d5d0f4321f346
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");
    }
}