Created
April 22, 2018 04:43
-
-
Save LeoHeo/2e4a6a0fc2d2b34da76abf66aa5d8102 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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