ArticleServiceTest.java 456 B

12345678910111213141516
  1. package com.caimei.www.service.page;
  2. import org.junit.jupiter.api.Test;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.boot.test.context.SpringBootTest;
  5. import static org.junit.jupiter.api.Assertions.*;
  6. @SpringBootTest
  7. class ArticleServiceTest {
  8. @Autowired
  9. ArticleService articleService;
  10. @Test
  11. void getInfoById() {
  12. System.out.println(articleService.getInfoById(6606).toString());
  13. }
  14. }