Helius
2020-06-05 849f20bc7696e1739a8ea7ad6424007c0b53ba1b
modify
3 files modified
17 ■■■■ changed files
src/main/resources/application-test.yml 4 ●●●● patch | view | raw | blame | history
src/main/resources/application.yml 4 ●●●● patch | view | raw | blame | history
src/test/java/com/xcong/excoin/RabbitMqTest.java 9 ●●●●● 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");
    }
}