From f26651644b4c199a8e30254af6e112fb6c8000f9 Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Fri, 25 Aug 2023 11:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=20=E5=BC=95=E5=85=A5WS=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E8=B0=83=E6=95=B4=E6=B5=8B=E8=AF=95=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xtong/zhbs/mapper/PassengerFlowMapperTest.java | 3 ++- .../java/com/xtong/zhbs/service/PassengerFlowServiceTest.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/xtong/zhbs/mapper/PassengerFlowMapperTest.java b/src/test/java/com/xtong/zhbs/mapper/PassengerFlowMapperTest.java index 6a785a3..a2ce1d6 100644 --- a/src/test/java/com/xtong/zhbs/mapper/PassengerFlowMapperTest.java +++ b/src/test/java/com/xtong/zhbs/mapper/PassengerFlowMapperTest.java @@ -11,7 +11,8 @@ import java.util.List; import static org.junit.Assert.*; -@SpringBootTest +//@SpringBootTest +@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @RunWith(SpringRunner.class) public class PassengerFlowMapperTest { @Autowired diff --git a/src/test/java/com/xtong/zhbs/service/PassengerFlowServiceTest.java b/src/test/java/com/xtong/zhbs/service/PassengerFlowServiceTest.java index afc2dad..169ddd5 100644 --- a/src/test/java/com/xtong/zhbs/service/PassengerFlowServiceTest.java +++ b/src/test/java/com/xtong/zhbs/service/PassengerFlowServiceTest.java @@ -11,7 +11,7 @@ import java.util.List; import static org.junit.Assert.*; -@SpringBootTest +@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @RunWith(SpringRunner.class) public class PassengerFlowServiceTest { @Autowired