Search in sources :

Example 1 with UserUpdater

use of org.sonar.server.user.UserUpdater in project sonarqube by SonarSource.

the class UpdateActionTest method setUp.

@Before
public void setUp() {
    dbClient.groupDao().insert(session, newGroupDto().setName("sonar-users"));
    session.commit();
    userIndexer = new UserIndexer(dbClient, esTester.client());
    tester = new WsTester(new UsersWs(new UpdateAction(new UserUpdater(mock(NewUserNotifier.class), settings, dbClient, userIndexer, system2, defaultOrganizationProvider, ORGANIZATION_CREATION_NOT_USED_FOR_UPDATE), userSessionRule, new UserJsonWriter(userSessionRule), dbClient)));
}
Also used : WsTester(org.sonar.server.ws.WsTester) NewUserNotifier(org.sonar.server.user.NewUserNotifier) UserIndexer(org.sonar.server.user.index.UserIndexer) UserUpdater(org.sonar.server.user.UserUpdater) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 NewUserNotifier (org.sonar.server.user.NewUserNotifier)1 UserUpdater (org.sonar.server.user.UserUpdater)1 UserIndexer (org.sonar.server.user.index.UserIndexer)1 WsTester (org.sonar.server.ws.WsTester)1