SampleTest.java 580 B

123456789101112131415161718192021
  1. package org.jeecg;
  2. import cn.com.ctop.crawler.modules.appium.service.IAppiumJobService;
  3. import lombok.extern.slf4j.Slf4j;
  4. import org.junit.Test;
  5. import org.junit.runner.RunWith;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.boot.test.context.SpringBootTest;
  8. import org.springframework.test.context.junit4.SpringRunner;
  9. @RunWith(SpringRunner.class)
  10. @SpringBootTest
  11. @Slf4j
  12. public class SampleTest {
  13. @Autowired
  14. private IAppiumJobService jobService;
  15. @Test
  16. public void testJob() {
  17. jobService.loginTask(2L);
  18. }
  19. }