Search in sources :

Example 1 with ResourceTypesRule

use of org.sonar.db.component.ResourceTypesRule in project sonarqube by SonarSource.

the class SearchProjectPermissionsActionTest method buildWsAction.

@Override
protected SearchProjectPermissionsAction buildWsAction() {
    i18n.setProjectPermissions();
    ResourceTypesRule rootResourceTypes = newRootResourceTypes();
    PermissionWsSupport wsSupport = newPermissionWsSupport();
    SearchProjectPermissionsDataLoader dataLoader = new SearchProjectPermissionsDataLoader(db.getDbClient(), wsSupport, rootResourceTypes);
    return new SearchProjectPermissionsAction(db.getDbClient(), userSession, i18n, rootResourceTypes, dataLoader, wsSupport);
}
Also used : ResourceTypesRule(org.sonar.db.component.ResourceTypesRule)

Aggregations

ResourceTypesRule (org.sonar.db.component.ResourceTypesRule)1