Skip to content

Commit

Permalink
refactor(#114): 엔드포인트 변경
Browse files Browse the repository at this point in the history
- broadcast 에서 all로 엔드포인트를 변경했어요.
  • Loading branch information
jyj1289 committed Sep 4, 2024
1 parent 14944eb commit 4a5914d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void sendMessageByType(
}

@ResponseStatus(HttpStatus.NO_CONTENT)
@PostMapping("/broadcast")
@PostMapping("/all")
public void sendMessageToAllUser(
@AuthenticationPrincipal(authority = Authority.ADMIN) User user,
@RequestBody @Valid SendMessageToAllUserRequest request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public class MessageControllerTest extends RestDocsTestSupport {
SendMessageToAllUserRequest request = new SendMessageToAllUserRequest("부산소마고 공지사항", "테스트임니다..");
willDoNothing().given(sendMessageUseCase).execute(request);

mockMvc.perform(post("/message/broadcast")
mockMvc.perform(post("/message/all")
.header(HttpHeaders.AUTHORIZATION, AuthFixture.createAuthHeader())
.contentType(MediaType.APPLICATION_JSON)
.content(toJson(request)))
Expand All @@ -206,7 +206,7 @@ public class MessageControllerTest extends RestDocsTestSupport {

willThrow(new FailedToSendException()).given(sendMessageUseCase).execute(any(SendMessageToAllUserRequest.class));

mockMvc.perform(post("/message/broadcast")
mockMvc.perform(post("/message/all")
.header(HttpHeaders.AUTHORIZATION, AuthFixture.createAuthHeader())
.contentType(MediaType.APPLICATION_JSON)
.content(toJson(request)))
Expand Down

0 comments on commit 4a5914d

Please sign in to comment.