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"); } }