Skip to content

Commit

Permalink
Update DomainUserDetailsServiceIT.java.ejs
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed May 23, 2024
1 parent 4d3dfb0 commit 65cc5e9
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ class DomainUserDetailsServiceIT {

@AfterEach
public void cleanup () {
userService.deleteUser(USER_ONE_LOGIN);
userService.deleteUser(USER_TWO_LOGIN);
userService.deleteUser(USER_THREE_LOGIN);
userService.deleteUser(USER_ONE_LOGIN)<%- callBlock %>;
userService.deleteUser(USER_TWO_LOGIN)<%- callBlock %>;
userService.deleteUser(USER_THREE_LOGIN)<%- callBlock %>;
}

@Test
Expand Down Expand Up @@ -195,8 +195,4 @@ class DomainUserDetailsServiceIT {
assertThatExceptionOfType(UserNotActivatedException.class).isThrownBy(
() -> domainUserDetailsService.<% if (reactive) { %>find<% } else { %>loadUser<% } %>ByUsername(USER_THREE_LOGIN)<% if (reactive) { %>.block()<% } %>);
}

private void deleteUserByLogin(String login) {
userRepository.delete(userRepository.findOneByLogin(login)<%- callBlockOptional %>.orElseThrow())<%- callBlock %>;
}
}

0 comments on commit 65cc5e9

Please sign in to comment.