From 4845d38ca6bd0d44767d0ef412009f11260b9482 Mon Sep 17 00:00:00 2001 From: liyongde <1419499670@qq.com> Date: Mon, 15 May 2023 20:25:54 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E6=B7=BB=E5=8A=A0=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/test/java/org/nl/ApplicationTest.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nladmin-system/nlsso-server/src/test/java/org/nl/ApplicationTest.java 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()); + } +}