use of org.sonar.server.usertoken.TokenGenerator in project sonarqube by SonarSource.
the class UserTokensWsTest method setUp.
@Before
public void setUp() {
UserSession userSession = mock(UserSession.class);
DbClient dbClient = mock(DbClient.class);
System2 system = mock(System2.class);
TokenGenerator tokenGenerator = mock(TokenGenerator.class);
ws = new WsTester(new UserTokensWs(new GenerateAction(dbClient, userSession, system, tokenGenerator), new RevokeAction(dbClient, userSession), new SearchAction(dbClient, userSession)));
}
Aggregations