package com.rj.scheduler;

import com.rj.controller.biz.TopSalesController;
import com.rj.dto.TopSalesScoreRequestDto;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.http.ResponseEntity;

import java.util.Map;

/**
 * TopSalesMockInsertDataScheduler 测试类
 * 用于测试模拟数据生成功能
 */
@SpringBootTest
public class TopSalesMockInsertDataSchedulerTest {

    @Autowired
    private TopSalesMockInsertDataScheduler topSalesMockInsertDataScheduler;

    @Test
    public void testGenerateMockData() {
        try {
            topSalesMockInsertDataScheduler.generateDailyTopSalesData();
        } catch (Exception e) {
            System.err.println("测试失败: " + e.getMessage());
            e.printStackTrace();
        }
    }
}
