use of org.molgenis.data.security.auth.TokenFactory in project molgenis by molgenis.
the class DataServiceTokenServiceTest method beforeMethod.
@BeforeMethod
public void beforeMethod() {
tokenGenerator = mock(TokenGenerator.class);
dataService = mock(DataService.class);
userDetailsService = mock(UserDetailsService.class);
TokenFactory tokenFactory = mock(TokenFactory.class);
when(tokenFactory.create()).thenAnswer(invocation -> mock(Token.class));
tokenService = new DataServiceTokenService(tokenGenerator, dataService, userDetailsService, tokenFactory);
}
Aggregations