Search in sources :

Example 1 with PermissionWsSupport

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

the class DeleteTemplateActionTest method setUp.

@Before
public void setUp() throws Exception {
    GroupWsSupport groupWsSupport = new GroupWsSupport(dbClient, TestDefaultOrganizationProvider.from(db));
    this.underTestWithoutViews = new WsActionTester(new DeleteTemplateAction(dbClient, userSession, new PermissionWsSupport(dbClient, new ComponentFinder(dbClient), groupWsSupport, resourceTypes), defaultTemplatesResolver));
    this.underTestWithViews = new WsActionTester(new DeleteTemplateAction(dbClient, userSession, new PermissionWsSupport(dbClient, new ComponentFinder(dbClient), groupWsSupport, resourceTypesWithViews), defaultTemplatesResolverWithViews));
}
Also used : ComponentFinder(org.sonar.server.component.ComponentFinder) PermissionWsSupport(org.sonar.server.permission.ws.PermissionWsSupport) GroupWsSupport(org.sonar.server.usergroups.ws.GroupWsSupport) WsActionTester(org.sonar.server.ws.WsActionTester) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 ComponentFinder (org.sonar.server.component.ComponentFinder)1 PermissionWsSupport (org.sonar.server.permission.ws.PermissionWsSupport)1 GroupWsSupport (org.sonar.server.usergroups.ws.GroupWsSupport)1 WsActionTester (org.sonar.server.ws.WsActionTester)1