Skip to content

Commit

Permalink
refactor(template): 불필요한 accept 헤더 제
Browse files Browse the repository at this point in the history
  • Loading branch information
jminkkk committed Oct 11, 2024
1 parent 04277cd commit 83f52f1
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ void createTemplateSuccess() throws Exception {
CreateTemplateRequest templateRequest = createValidTemplateRequest();

mvc.perform(post("/templates")
.accept(MediaType.APPLICATION_JSON)
.contentType(MediaType.APPLICATION_JSON)
.content(objectMapper.writeValueAsString(templateRequest)))
.andExpect(status().isCreated());
Expand All @@ -78,7 +77,6 @@ private static CreateTemplateRequest createValidTemplateRequest() {
@DisplayName("템플릿 생성 실패: 문자열 잘못된 형식인 경우 400 빈환")
void createTemplateFailWithInvalidInput(CreateTemplateRequest request, String expectedError) throws Exception {
mvc.perform(post("/templates")
.accept(MediaType.APPLICATION_JSON)
.contentType(MediaType.APPLICATION_JSON)
.content(objectMapper.writeValueAsString(request)))
.andExpect(status().isBadRequest())
Expand Down Expand Up @@ -280,7 +278,6 @@ void updateTemplateSuccess() throws Exception {
UpdateTemplateRequest updateTemplateRequest = createValidUpdateTemplateRequest();

mvc.perform(post("/templates/1")
.accept(MediaType.APPLICATION_JSON)
.contentType(MediaType.APPLICATION_JSON)
.content(objectMapper.writeValueAsString(updateTemplateRequest)))
.andExpect(status().isOk());
Expand All @@ -304,7 +301,6 @@ private static UpdateTemplateRequest createValidUpdateTemplateRequest() {
void updateTemplateFailWithInvalidInput(UpdateTemplateRequest request, String expectedError) throws Exception {

mvc.perform(post("/templates/1")
.accept(MediaType.APPLICATION_JSON)
.contentType(MediaType.APPLICATION_JSON)
.content(objectMapper.writeValueAsString(request)))
.andExpect(status().isBadRequest())
Expand Down

0 comments on commit 83f52f1

Please sign in to comment.