use of org.sonar.server.user.index.UserIndexer in project sonarqube by SonarSource.
the class DeactivateActionTest method setUp.
@Before
public void setUp() {
userIndexer = new UserIndexer(dbClient, esTester.client());
index = new UserIndex(esTester.client());
userIndexer = new UserIndexer(dbClient, esTester.client());
ws = new WsActionTester(new DeactivateAction(dbClient, userIndexer, userSession, new UserJsonWriter(userSession), defaultOrganizationProvider));
}
use of org.sonar.server.user.index.UserIndexer 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)));
}
Aggregations