Browse Source

add: 添加单元测试

master
李永德 2 years ago
parent
commit
4845d38ca6
  1. 21
      nladmin-system/nlsso-server/src/test/java/org/nl/ApplicationTest.java

21
nladmin-system/nlsso-server/src/test/java/org/nl/ApplicationTest.java

@ -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…
Cancel
Save