Skip to content

Commit

Permalink
style: controller 패키지의 *Api -> *Controller로 rename
Browse files Browse the repository at this point in the history
  • Loading branch information
JadeKim042386 committed Jul 22, 2024
1 parent c85c45f commit 444a702
Show file tree
Hide file tree
Showing 26 changed files with 40 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/notis")
public class AlarmApi {
public class AlarmController {
private final AlarmService alarmService;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/auctions")
public class AuctionApi {
public class AuctionController {
private final AuctionService auctionService;
private final AuctionEventService auctionEventService;
private final BiddingHistoryService biddingHistoryService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/auctions")
public class AuctionReviewApi {
public class AuctionReviewController {
private final AuctionReviewService auctionReviewService;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/auth")
public class AuthApi {
public class AuthController {
private final MemberService memberService;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@Controller
@RequiredArgsConstructor
public class ChatMessageApi {
public class ChatMessageController {
private final ChatMessageService chatMessageService;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/chats")
public class ChatRoomApi {
public class ChatRoomController {
private final ChatRoomService chatRoomService;

@GetMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/chats")
public class ChatRoomEventApi {
public class ChatRoomEventController {
private final ChatRoomService chatRoomService;
private final UserFlagChatAlarm userFlagChatAlarm;
private final CancelBookingProductAlarm cancelBookingProductAlarm;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/mail")
public class MailApi {
public class MailController {
private final MailService mailService;
private final MemberService memberService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/members")
public class MemberApi {
public class MemberController {
private final MemberService memberService;
private final FileService fileService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/products")
public class ProductApi {
public class ProductController {
private final ProductService productService;
private final FileService fileService;
private final ChatRoomService chatRoomService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/productDeals")
public class ProductDealApi {
public class ProductDealController {
private final ProductDealService productDealService;

@GetMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/products")
public class ProductLikeApi {
public class ProductLikeController {
private final ProductLikeService productLikeService;

@GetMapping("/likes")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/products")
public class ProductReviewApi {
public class ProductReviewController {
private final ProductReviewService productReviewService;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

@WebMvcTest(AlarmApi.class)
@WebMvcTest(AlarmController.class)
@Import(TestSecurityConfig.class)
class AlarmApiTest {
class AlarmControllerTest {
@Autowired
private MockMvc mvc;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

@ActiveProfiles("test")
@WebMvcTest(AuctionApi.class)
@WebMvcTest(AuctionController.class)
@Import(TestSecurityConfig.class)
class AuctionApiTest {
class AuctionControllerTest {
@Autowired
private MockMvc mvc;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

@ActiveProfiles("test")
@WebMvcTest(AuctionReviewApi.class)
@WebMvcTest(AuctionReviewController.class)
@Import(TestSecurityConfig.class)
class AuctionReviewApiTest {
class AuctionReviewControllerTest {
@Autowired
private MockMvc mvc;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

@ActiveProfiles("test")
@WebMvcTest(AuthApi.class)
@WebMvcTest(AuthController.class)
@Import(TestSecurityConfig.class)
class AuthApiTest {
class AuthControllerTest {
@Autowired
private MockMvc mvc;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

@ActiveProfiles("test")
@WebMvcTest(ChatRoomApi.class)
@WebMvcTest(ChatRoomController.class)
@Import(TestSecurityConfig.class)
class ChatRoomApiTest {
class ChatRoomControllerTest {
@Autowired
private MockMvc mvc;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

@ActiveProfiles("test")
@WebMvcTest(ChatRoomEventApi.class)
@WebMvcTest(ChatRoomEventController.class)
@Import(TestSecurityConfig.class)
class ChatRoomEventApiTest {
class ChatRoomEventControllerTest {
@Autowired
private MockMvc mvc;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

@ActiveProfiles("test")
@WebMvcTest(MailApi.class)
@WebMvcTest(MailController.class)
@Import(TestSecurityConfig.class)
class MailApiTest {
class MailControllerTest {

@Autowired
private MockMvc mvc;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;

@WebMvcTest(MemberApi.class)
@WebMvcTest(MemberController.class)
@Import(TestSecurityConfig.class)
class MemberApiTest {
class MemberControllerTest {

@Autowired
private MockMvc mvc;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;

@WebMvcTest(ProductApi.class)
@WebMvcTest(ProductController.class)
@Import(TestSecurityConfig.class)
class ProductApiTest {
class ProductControllerTest {
@Autowired
private MockMvc mvc;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

@ActiveProfiles("test")
@Import(TestSecurityConfig.class)
@WebMvcTest(ProductDealApi.class)
class ProductDealApiTest {
@WebMvcTest(ProductDealController.class)
class ProductDealControllerTest {
@Autowired
private MockMvc mvc;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

@ActiveProfiles("test")
@WebMvcTest(ProductLikeApi.class)
@WebMvcTest(ProductLikeController.class)
@Import(TestSecurityConfig.class)
class ProductLikeApiTest {
class ProductLikeControllerTest {
@Autowired
private MockMvc mvc;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

@WebMvcTest(ProductReviewApi.class)
@WebMvcTest(ProductReviewController.class)
@Import(TestSecurityConfig.class)
class ProductReviewApiTest {
class ProductReviewControllerTest {
@Autowired
private MockMvc mvc;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import freshtrash.freshtrashbackend.Fixture.FixtureDto;
import freshtrash.freshtrashbackend.config.TestSecurityConfig;
import freshtrash.freshtrashbackend.controller.AuctionApi;
import freshtrash.freshtrashbackend.controller.AuctionController;
import freshtrash.freshtrashbackend.dto.request.BiddingRequest;
import freshtrash.freshtrashbackend.entity.constants.UserRole;
import freshtrash.freshtrashbackend.exception.AuctionException;
Expand Down Expand Up @@ -35,7 +35,7 @@
@Import(TestSecurityConfig.class)
public class AuctionIntegrationTest {
@Autowired
AuctionApi auctionApi;
AuctionController auctionController;

@Autowired
AuctionService auctionService;
Expand Down Expand Up @@ -63,7 +63,7 @@ void bidding() throws InterruptedException {
int price = random.nextInt((5000 - 1000) + 1) + 1000;
price -= price % 10;
log.info("Bidding price: {}", price);
auctionApi.placeBidding(auctionId, new BiddingRequest(price), FixtureDto.createMemberPrincipal());
auctionController.placeBidding(auctionId, new BiddingRequest(price), FixtureDto.createMemberPrincipal());
latch.countDown();
latch.await();
} catch (InterruptedException e) {
Expand Down

0 comments on commit 444a702

Please sign in to comment.