RecommendTest.java 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. package com.tzld.longarticle.recommend.server;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.tzld.longarticle.recommend.server.service.RecommendService;
  4. import com.tzld.longarticle.recommend.server.service.recall.RecallParam;
  5. import com.tzld.longarticle.recommend.server.service.recall.RecallResult;
  6. import com.tzld.longarticle.recommend.server.service.recall.RecallService;
  7. import org.junit.jupiter.api.Test;
  8. import org.springframework.boot.test.context.SpringBootTest;
  9. import javax.annotation.Resource;
  10. @SpringBootTest(classes = RecommendTest.class)
  11. public class RecommendTest {
  12. @Resource
  13. private RecommendService recommendService;
  14. @Resource
  15. private RecallService recallService;
  16. @Test
  17. void recall() {
  18. RecallParam param = new RecallParam();
  19. param.setAccountId("20231213123536190184852");
  20. param.setPlanId("20240718181730864154902");
  21. RecallResult recallResult = recallService.recall(param);
  22. System.out.println(JSONObject.toJSONString(recallResult));
  23. }
  24. }