SampleTest.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package org.jeecg;
  2. import cn.com.ctop.crawler.modules.oceanengine.service.IOceanEngineService;
  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 IOceanEngineService oceanEngineService;
  15. @Test
  16. public void testOceanEngineJob(){
  17. String account="3248395570@qq.com";
  18. String password = "Ydxq-704127411";
  19. oceanEngineService.login(account,password);
  20. oceanEngineService.douyinHotHandler(1,1);
  21. oceanEngineService.effectCaseHandler(1);
  22. oceanEngineService.hotMaterialHandler(1,1,"西瓜");
  23. oceanEngineService.hotMaterialHandler(1,3,"火山");
  24. oceanEngineService.hotMaterialHandler(1,4,"抖音");
  25. oceanEngineService.hotMaterialHandler(1,8,"头条");
  26. oceanEngineService.hotMaterialHandler(1,9,"穿山甲");
  27. log.info("巨量创意抓取完成");
  28. }
  29. }