package link.at17.mid.tushare.data;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import link.at17.mid.tushare.dao.StockDailyDao;
import link.at17.mid.tushare.data.crawler.QueryWay;
import link.at17.mid.tushare.data.crawler.tushare.TushareCrawler;
import link.at17.mid.tushare.data.service.StockLimitService;
import lombok.extern.slf4j.Slf4j;

@SpringBootTest
@Slf4j
class UpdateStockLimitTest {

    @Autowired
    TushareCrawler tushareCrawler;
    
    @Autowired
    StockDailyDao stockDailyDao;
    
    @Autowired
    StockLimitService stockLimitService;
    
    
    @Test
    void testStockListUpdate() {
        stockLimitService.updateData(QueryWay.ByDateAll);
    }

}
