diff --git a/nladmin-system/nlsso-server/src/test/java/org/nl/ApplicationTest.java b/nladmin-system/nlsso-server/src/test/java/org/nl/ApplicationTest.java new file mode 100644 index 0000000..6306320 --- /dev/null +++ b/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()); + } +}