Skip to content

Commit

Permalink
Update ProductControllerTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
chd830 authored Sep 27, 2022
1 parent 1156bc5 commit fc58ab9
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ public void createProduct() throws Exception {
Product product = new Product(1L, 1L, 1, 50L, "국밥", "https://img.url", "순대국밥", 2000L);
this.mockMvc.perform(post("/api/v1/product")
.content(String.valueOf(MediaType.APPLICATION_JSON))
.content(this.objectMapper.writeValueAsString(product)))
.andExpect(status().isOk())
.andDo(print())
.andDo(document("product",
preprocessRequest(prettyPrint()),
preprocessResponse(prettyPrint()))
);
.content(this.objectMapper.writeValueAsString(product)))
.andExpect(status().isOk())
.andDo(print())
.andDo(document("product",
preprocessRequest(prettyPrint()),
preprocessResponse(prettyPrint()))
);
}

}

0 comments on commit fc58ab9

Please sign in to comment.