package org.jeecg; import cn.com.ctop.crawler.modules.appium.service.IAppiumTaskService; 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.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest @Slf4j public class SampleTest { @Autowired private IAppiumTaskService taskService; @Test public void testJob() { taskService.runTask(1, 2); } }