Skip to content

Commit

Permalink
test: Controller Test 필요없는 Import 주석 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
seminchoi committed Aug 13, 2024
1 parent 8577e63 commit cfd3801
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Import;
import org.springframework.http.MediaType;
import org.springframework.restdocs.payload.JsonFieldType;
import org.springframework.test.web.servlet.ResultActions;
Expand All @@ -21,8 +20,7 @@
import com.thirdparty.ticketing.domain.performance.service.AdminPerformanceService;
import com.thirdparty.ticketing.support.BaseControllerTest;

@WebMvcTest(AdminPerformanceControllerTest.class)
@Import(AdminPerformanceController.class)
@WebMvcTest(AdminPerformanceController.class)
class AdminPerformanceControllerTest extends BaseControllerTest {

@MockBean private AdminPerformanceService adminPerformanceService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Import;
import org.springframework.test.web.servlet.ResultActions;

import com.thirdparty.ticketing.domain.ItemResult;
import com.thirdparty.ticketing.domain.performance.dto.PerformanceElement;
import com.thirdparty.ticketing.domain.performance.service.UserPerformanceService;
import com.thirdparty.ticketing.support.BaseControllerTest;

@WebMvcTest(UserPerformanceControllerTest.class)
@Import(UserPerformanceController.class)
@WebMvcTest(UserPerformanceController.class)
class UserPerformanceControllerTest extends BaseControllerTest {

@MockBean private UserPerformanceService userPerformanceService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Import;
import org.springframework.http.MediaType;
import org.springframework.restdocs.payload.JsonFieldType;
import org.springframework.test.web.servlet.ResultActions;
Expand All @@ -27,7 +26,6 @@
import com.thirdparty.ticketing.support.BaseControllerTest;

@WebMvcTest(AdminSeatController.class)
@Import(AdminSeatController.class)
public class AdminSeatControllerTest extends BaseControllerTest {

@MockBean private AdminSeatService adminSeatService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Import;
import org.springframework.restdocs.payload.JsonFieldType;
import org.springframework.test.web.servlet.ResultActions;

Expand All @@ -26,7 +25,6 @@
import com.thirdparty.ticketing.support.BaseControllerTest;

@WebMvcTest(SeatController.class)
@Import(SeatController.class)
public class SeatControllerTest extends BaseControllerTest {
@MockBean private SeatService seatService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Import;
import org.springframework.http.MediaType;
import org.springframework.restdocs.payload.JsonFieldType;
import org.springframework.test.web.servlet.ResultActions;
Expand All @@ -25,8 +24,7 @@
import com.thirdparty.ticketing.domain.zone.service.AdminZoneService;
import com.thirdparty.ticketing.support.BaseControllerTest;

@WebMvcTest(AdminZoneControllerTest.class)
@Import(AdminZoneController.class)
@WebMvcTest(AdminZoneController.class)
public class AdminZoneControllerTest extends BaseControllerTest {

@MockBean private AdminZoneService adminZoneService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Import;
import org.springframework.test.web.servlet.ResultActions;

import com.thirdparty.ticketing.domain.ItemResult;
Expand All @@ -21,8 +20,7 @@
import com.thirdparty.ticketing.domain.zone.service.UserZoneService;
import com.thirdparty.ticketing.support.BaseControllerTest;

@WebMvcTest(UserZoneControllerTest.class)
@Import(UserZoneController.class)
@WebMvcTest(UserZoneController.class)
class UserZoneControllerTest extends BaseControllerTest {

@MockBean private UserZoneService userZoneService;
Expand Down

0 comments on commit cfd3801

Please sign in to comment.