From 76cb1b2fdef67dc48fd928c47fcd9547cb70d0ff Mon Sep 17 00:00:00 2001 From: gyungchan Jo Date: Thu, 28 Nov 2024 17:50:32 +0900 Subject: [PATCH] =?UTF-8?q?test:=20test=20=EC=84=A4=EC=A0=95=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/test/java/config/BaseControllerTest.java | 16 ---------------- .../room/controller/RoomControllerTest.java | 3 +-- .../RoomDetailsInquiryControllerTest.java | 3 +-- 3 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 backend/src/test/java/config/BaseControllerTest.java diff --git a/backend/src/test/java/config/BaseControllerTest.java b/backend/src/test/java/config/BaseControllerTest.java deleted file mode 100644 index 01389e47a..000000000 --- a/backend/src/test/java/config/BaseControllerTest.java +++ /dev/null @@ -1,16 +0,0 @@ -package config; - -import io.restassured.RestAssured; -import org.junit.jupiter.api.BeforeEach; -import org.springframework.boot.test.web.server.LocalServerPort; - -public abstract class BaseControllerTest { - - @LocalServerPort - private int port; - - @BeforeEach - void setupPort() { - RestAssured.port = port; - } -} diff --git a/backend/src/test/java/corea/room/controller/RoomControllerTest.java b/backend/src/test/java/corea/room/controller/RoomControllerTest.java index 9945365cf..0cac2b486 100644 --- a/backend/src/test/java/corea/room/controller/RoomControllerTest.java +++ b/backend/src/test/java/corea/room/controller/RoomControllerTest.java @@ -1,6 +1,5 @@ package corea.room.controller; -import config.BaseControllerTest; import config.ControllerTest; import corea.auth.service.TokenService; import corea.fixture.MemberFixture; @@ -31,7 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertAll; @ControllerTest -class RoomControllerTest extends BaseControllerTest { +class RoomControllerTest { @Autowired private RoomRepository roomRepository; diff --git a/backend/src/test/java/corea/room/controller/RoomDetailsInquiryControllerTest.java b/backend/src/test/java/corea/room/controller/RoomDetailsInquiryControllerTest.java index c1ed60bde..d7e234ffa 100644 --- a/backend/src/test/java/corea/room/controller/RoomDetailsInquiryControllerTest.java +++ b/backend/src/test/java/corea/room/controller/RoomDetailsInquiryControllerTest.java @@ -1,6 +1,5 @@ package corea.room.controller; -import config.BaseControllerTest; import config.ControllerTest; import corea.auth.service.TokenService; import corea.fixture.MemberFixture; @@ -26,7 +25,7 @@ import static org.junit.jupiter.api.Assertions.assertAll; @ControllerTest -class RoomDetailsInquiryControllerTest extends BaseControllerTest { +class RoomDetailsInquiryControllerTest { @Autowired private RoomRepository roomRepository;