李永德
2 years ago
1 changed files with 21 additions and 0 deletions
@ -0,0 +1,21 @@ |
|||||
|
package org.nl; |
||||
|
|
||||
|
import org.junit.jupiter.api.Test; |
||||
|
import org.nl.system.service.user.ISysUserService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.boot.test.context.SpringBootTest; |
||||
|
|
||||
|
/** |
||||
|
* @Author: lyd |
||||
|
* @Description: 单元测试 |
||||
|
* @Date: 2023/5/15 |
||||
|
*/ |
||||
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) |
||||
|
public class ApplicationTest { |
||||
|
@Autowired |
||||
|
private ISysUserService userService; |
||||
|
@Test |
||||
|
void contextLoads() { |
||||
|
System.out.println(userService.list()); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue