import com.ruoyi.doublePrevention.scheduls.ExecCJReportDateSchedule; import lombok.extern.slf4j.Slf4j; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.junit4.SpringRunner; import java.io.UnsupportedEncodingException; @RunWith(SpringRunner.class) @SpringBootTest(classes = SpringBootApplication.class) //@ActiveProfiles("dev") @Slf4j public class ReportTest { @Autowired ExecCJReportDateSchedule execCJReportDateSchedule; @Test public void testPush() throws UnsupportedEncodingException { execCJReportDateSchedule.execReportDateSchedule(); } }