zainali5120
2021-02-25 9219e18a9b2fb06b95b5c881b057d3fde7270ca3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.xcong.excoin;
 
import com.xcong.excoin.modules.documentary.service.FollowOrderOperationService;
import com.xcong.excoin.quartz.job.FollowProfitUpdateJob;
import com.xcong.excoin.utils.ThreadPoolUtils;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
 
import javax.annotation.Resource;
 
/**
 * @author wzy
 * @date 2020-08-03
 **/
@Slf4j
@SpringBootTest
public class FollowTest {
 
    @Resource
    private FollowOrderOperationService followOrderOperationService;
 
    @Test
    public void addFollowTest() {
        followOrderOperationService.addFollowerOrder(601L);
//        ThreadPoolUtils.sendFollowOrderTask(601L);
 
    }
 
    @Test
    public void strContainsTest() {
        String symbols = "BTC,ETH,LTC,BCH";
        String symbol = "BTC/USDT";
 
        System.out.println(symbols.contains(symbol.replace("/USDT", "")));
    }
 
    @Resource
    private FollowProfitUpdateJob followProfitUpdateJob;
 
    @Test
    public void updateJobTest() {
        followProfitUpdateJob.traderProfitUpdate();
    }
}