Skip to content

Commit

Permalink
test: ImageController RequestMapping 제거 후 테스트코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomo committed Jan 9, 2024
1 parent 903082f commit 89889b9
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class 미션_기록_이미지_PresignedUrl을_생성할_때 {

// when, then
mockMvc.perform(
post("/images/records/upload-url")
post("/records/upload-url")
.contentType(APPLICATION_JSON)
.content(objectMapper.writeValueAsString(request)))
.andExpect(status().isBadRequest())
Expand All @@ -60,7 +60,7 @@ class 미션_기록_이미지_PresignedUrl을_생성할_때 {

// when, then
mockMvc.perform(
post("/images/records/upload-url")
post("/records/upload-url")
.contentType(APPLICATION_JSON)
.content(objectMapper.writeValueAsString(request)))
.andExpect(status().isBadRequest())
Expand All @@ -83,7 +83,7 @@ class 미션_기록_이미지_PresignedUrl을_생성할_때 {

// then
mockMvc.perform(
post("/images/records/upload-url")
post("/records/upload-url")
.contentType(APPLICATION_JSON)
.content(objectMapper.writeValueAsString(request)))
.andExpect(status().isOk())
Expand All @@ -105,7 +105,7 @@ class 미션_기록_이미지_업로드_완료_처리할_때 {

// when, then
mockMvc.perform(
post("/images/records/upload-complete")
post("/records/upload-complete")
.contentType(APPLICATION_JSON)
.content(objectMapper.writeValueAsString(request)))
.andExpect(status().isBadRequest())
Expand All @@ -124,7 +124,7 @@ class 미션_기록_이미지_업로드_완료_처리할_때 {

// when, then
mockMvc.perform(
post("/images/records/upload-complete")
post("/records/upload-complete")
.contentType(APPLICATION_JSON)
.content(objectMapper.writeValueAsString(request)))
.andExpect(status().isBadRequest())
Expand All @@ -143,7 +143,7 @@ class 미션_기록_이미지_업로드_완료_처리할_때 {

// when, then
mockMvc.perform(
post("/images/records/upload-complete")
post("/records/upload-complete")
.contentType(APPLICATION_JSON)
.content(objectMapper.writeValueAsString(request)))
.andExpect(status().isOk())
Expand All @@ -161,7 +161,7 @@ class 미션_기록_이미지_업로드_완료_처리할_때 {

// when, then
mockMvc.perform(
post("/images/records/upload-url")
post("/records/upload-url")
.contentType(APPLICATION_JSON)
.content(objectMapper.writeValueAsString(request)))
.andExpect(status().isOk())
Expand Down

0 comments on commit 89889b9

Please sign in to comment.