src/main/resources/application-test.yml | ●●●●● patch | view | raw | blame | history | |
src/main/resources/application.yml | ●●●●● patch | view | raw | blame | history | |
src/test/java/com/xcong/excoin/RabbitMqTest.java | ●●●●● patch | view | raw | blame | history |
src/main/resources/application-test.yml
@@ -94,9 +94,9 @@ debug: true redis_expire: 3000 kline-update-job: false newest-price-update-job: true newest-price-update-job: false other-job: true rabbit-consumer: true rabbit-consumer: false aliyun: oss: src/main/resources/application.yml
@@ -96,10 +96,10 @@ # k线更新任务控制 kline-update-job: false #最新价任务控制 newest-price-update-job: false newest-price-update-job: true #其他任务控制 other-job: false rabbit-consumer: false rabbit-consumer: true aliyun: oss: 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", "9726.8"); } }