From e919f3245be24275f00f1bd4f34cd1b7d1774f16 Mon Sep 17 00:00:00 2001 From: Romesum Date: Thu, 7 May 2020 14:21:51 +0800 Subject: [PATCH] =?UTF-8?q?[fix][M]:=E5=AE=8C=E6=88=90=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BookingsystemApplicationTests.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/java/src/test/java/com/hzu/bookingsystem/BookingsystemApplicationTests.java b/java/src/test/java/com/hzu/bookingsystem/BookingsystemApplicationTests.java index 73ea293..48e3fdf 100644 --- a/java/src/test/java/com/hzu/bookingsystem/BookingsystemApplicationTests.java +++ b/java/src/test/java/com/hzu/bookingsystem/BookingsystemApplicationTests.java @@ -1,11 +1,15 @@ package com.hzu.bookingsystem; import com.hzu.bookingsystem.bean.UserBean; +import com.hzu.bookingsystem.dto.UserDTO; import com.hzu.bookingsystem.service.UserService; + import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; +import java.util.List; + @SpringBootTest class BookingsystemApplicationTests { @@ -20,13 +24,14 @@ class BookingsystemApplicationTests { public void test(){ UserBean user = new UserBean(); user.setUsername("123456"); - user.setNickname("吴志岳"); - user.setEmail("274129947@qq.com"); - user.setPassword("123456123weqwe"); - user.setOffice("5#101qwe"); -// System.out.println(userService.findAll()); + user.setNickname("莫家豪"); + user.setEmail("???@qq.com"); + user.setPassword("123456"); + user.setOffice("18#???"); userService.add(user); // userService.save(user); // userService.deleteById(1); + List userDTOList = userService.findAllUserInfo(); + System.out.println(userDTOList); } }