add: 添加单元测试
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user