Skip to content
This repository has been archived by the owner on Dec 7, 2024. It is now read-only.

Commit

Permalink
fix(UserServiceTest): mocking PasswordEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
alexZ7000 committed Oct 11, 2024
1 parent c1db925 commit 58cd0fa
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.crypto.password.PasswordEncoder;

import java.util.Date;
import java.util.List;
Expand All @@ -39,6 +40,9 @@ final class UserServiceTest {
@Mock
private AuthenticationManager authenticationManager;

@Mock
private PasswordEncoder passwordEncoder;

private UserDTO userDTO;
private User user;
private UUID userId;
Expand Down

0 comments on commit 58cd0fa

Please sign in to comment.