use of com.nexblocks.authguard.external.email.EmailProvider in project AuthGuard by AuthGuard.
the class VerificationSubscriberTest method setup.
@BeforeEach
void setup() {
emailProvider = Mockito.mock(EmailProvider.class);
accountTokensRepository = Mockito.mock(AccountTokensRepository.class);
final ConfigContext configContext = Mockito.mock(ConfigContext.class);
final ImmutableVerificationConfig verificationConfig = ImmutableVerificationConfig.builder().emailVerificationLife("1d").build();
Mockito.when(configContext.asConfigBean(ImmutableVerificationConfig.class)).thenReturn(verificationConfig);
verificationSubscriber = new VerificationSubscriber(emailProvider, accountTokensRepository, configContext);
}
Aggregations