|
|
@@ -2,6 +2,7 @@ package com.danielbohry.authservice.service.auth;
|
|
|
|
|
|
import com.danielbohry.authservice.api.dto.AuthenticationRequest;
|
|
|
import com.danielbohry.authservice.api.dto.AuthenticationResponse;
|
|
|
+import com.danielbohry.authservice.client.MailClient;
|
|
|
import com.danielbohry.authservice.domain.ApplicationUser;
|
|
|
import com.danielbohry.authservice.domain.Role;
|
|
|
import com.danielbohry.authservice.service.user.UserService;
|
|
|
@@ -42,11 +43,12 @@ class AuthServiceTest {
|
|
|
private ApplicationUser testUser;
|
|
|
private Authentication testAuthentication;
|
|
|
private AuthenticationRequest testRequest;
|
|
|
+ private MailClient mailClient;
|
|
|
|
|
|
@BeforeEach
|
|
|
void setUp() {
|
|
|
MockitoAnnotations.openMocks(this);
|
|
|
- authService = new AuthService(userService, jwtService, authenticationManager, passwordEncoder);
|
|
|
+ authService = new AuthService(userService, jwtService, authenticationManager, passwordEncoder, mailClient);
|
|
|
|
|
|
testUser = ApplicationUser.builder()
|
|
|
.id("user-id-123")
|