package com.zjty.autotest.config;

import com.zjty.autotest.dao.AutoResultSetDao;
import com.zjty.autotest.mq.PushBlockQueue;
import com.zjty.autotest.service.TestReportService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class ProjectInitRun implements CommandLineRunner {
    @Autowired
    private AutoResultSetDao autoResultSetDao;
    @Autowired
    private TestReportService testReportService;
    @Override
    public void run(String... args) throws Exception {
        PushBlockQueue queue=new PushBlockQueue(autoResultSetDao,testReportService);
        queue.start();
    }
}
