Search in sources :

Example 1 with TemplateUsersAction

use of org.sonar.server.permission.ws.template.TemplateUsersAction in project sonarqube by SonarSource.

the class PermissionsWsTest method setUp.

@Before
public void setUp() {
    DbClient dbClient = mock(DbClient.class);
    UserSession userSession = mock(UserSession.class);
    PermissionWsSupport permissionWsSupport = mock(PermissionWsSupport.class);
    ws = new WsTester(new PermissionsWs(new TemplateUsersAction(dbClient, userSession, permissionWsSupport), new TemplateGroupsAction(dbClient, userSession, permissionWsSupport)));
}
Also used : DbClient(org.sonar.db.DbClient) WsTester(org.sonar.server.ws.WsTester) UserSession(org.sonar.server.user.UserSession) TemplateUsersAction(org.sonar.server.permission.ws.template.TemplateUsersAction) TemplateGroupsAction(org.sonar.server.permission.ws.template.TemplateGroupsAction) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 DbClient (org.sonar.db.DbClient)1 TemplateGroupsAction (org.sonar.server.permission.ws.template.TemplateGroupsAction)1 TemplateUsersAction (org.sonar.server.permission.ws.template.TemplateUsersAction)1 UserSession (org.sonar.server.user.UserSession)1 WsTester (org.sonar.server.ws.WsTester)1