Skip to content

Instantly share code, notes, and snippets.

@LeoHeo
Created April 22, 2018 04:43
Show Gist options
  • Select an option

  • Save LeoHeo/2e4a6a0fc2d2b34da76abf66aa5d8102 to your computer and use it in GitHub Desktop.

Select an option

Save LeoHeo/2e4a6a0fc2d2b34da76abf66aa5d8102 to your computer and use it in GitHub Desktop.
@Test
public void 골뱅이_있지만_유효하지않는_format_400() throws Exception {
UserSaveDto userSaveDto = new UserSaveDto();
userSaveDto.setUsername("hjh");
userSaveDto.setAddress("seoul");
userSaveDto.setPassword("123456");
userSaveDto.setEmail("hjh544@g");
userSaveDto.setProvider(Provider.create("test"));
this.mockMvc.perform(
post("/user/signup")
.contentType(MediaType.APPLICATION_JSON_UTF8)
.content(objectMapper.writeValueAsString(userSaveDto)))
.andExpect(status().isBadRequest());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment