Search in sources :

Example 1 with ComponentIndex

use of org.sonar.server.component.index.ComponentIndex in project sonarqube by SonarSource.

the class SuggestionsActionTest method setUp.

@Before
public void setUp() {
    ComponentIndex index = new ComponentIndex(es.client(), new AuthorizationTypeSupport(userSessionRule));
    action = new SuggestionsAction(db.getDbClient(), index);
    organization = db.organizations().insert();
}
Also used : ComponentIndex(org.sonar.server.component.index.ComponentIndex) AuthorizationTypeSupport(org.sonar.server.permission.index.AuthorizationTypeSupport) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 ComponentIndex (org.sonar.server.component.index.ComponentIndex)1 AuthorizationTypeSupport (org.sonar.server.permission.index.AuthorizationTypeSupport)1