xiaoyong931011
2021-03-22 0ea6cd6f2be2fc9196ef29a0c9fd8db18c69811b
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");
    }
}