package com.xvji.admin;

import com.xvji.service.task.TaskComponentExecutor;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class TaskComponentTest {

    @Autowired
    private TaskComponentExecutor componentExecutor;

    @Test
    public void testExecuteComponents() {
        Long taskId = 6005L;  // 替换为实际任务ID
        Integer taskType = 1; // 0=训练任务，1=预测任务
        componentExecutor.executeComponents(taskId, taskType);
    }
}