package com.njcn; import com.njcn.gather.EntranceApplication; import com.njcn.gather.report.pojo.DevReportParam; import com.njcn.gather.report.service.IPqReportService; 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; import org.springframework.test.context.web.WebAppConfiguration; /** * @author hongawen * @version 1.0.0 * @date 2021年12月10日 15:05 */ @RunWith(SpringRunner.class) @WebAppConfiguration @SpringBootTest(classes = EntranceApplication.class) public class BaseJunitTest { @Autowired private IPqReportService pqReportService; @Test public void test() { DevReportParam devReportParam = new DevReportParam(); devReportParam.setPlanId("ad3df9e4a90b4c3c8ce7d21a84ce6f59"); devReportParam.setPlanCode("31"); devReportParam.setScriptId("810e4050e1d445e3542c998a077a263a"); devReportParam.setDevId("a46349a3b3cf4789a6b82690a6076afd"); pqReportService.generateReport(devReportParam); } }