Skip to content

Commit

Permalink
Puth checking the current behavior to the test
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Nov 3, 2023
1 parent 4fa2b4c commit 3235c57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void checkLoginIsFree(EditUserDTO userAccountDTO) {

public boolean checkEmailIsFree(EditUserDTO userAccountDTO, UserAccount exists) {
if (exists.email() != null && !exists.email().equals(userAccountDTO.email()) && userAccountDTO.email() != null && userAccountRepository.findByEmail(userAccountDTO.email()).isPresent()) {
LOGGER.error("user with email '{}' already present. exiting...", exists.email());
LOGGER.warn("user with email '{}' already present. exiting...", exists.email());
return false;
} else {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ public void fullyAuthenticatedUserCannotChangeHerProfileWithoutUsername() throws
.with(csrf())
)
.andExpect(status().isBadRequest())
// .andExpect(jsonPath("$.validationErrors[0].field").value("login"))
// .andExpect(jsonPath("$.validationErrors[0].message").value("must not be empty"))
.andExpect(jsonPath("$.error").value("validation error"))
.andExpect(jsonPath("$.message").value("empty login"))
.andReturn();

LOGGER.info(mvcResult.getResponse().getContentAsString());
Expand Down

0 comments on commit 3235c57

Please sign in to comment.