use of org.sonar.server.ws.WsActionTester in project sonarqube by SonarSource.
the class SearchTemplatesActionTest method setUp.
@Before
public void setUp() {
DefaultTemplatesResolver defaultTemplatesResolverWithViews = new DefaultTemplatesResolverImpl(resourceTypesWithoutViews);
SearchTemplatesDataLoader dataLoaderWithViews = new SearchTemplatesDataLoader(dbClient, defaultTemplatesResolverWithViews);
underTestWithoutViews = new WsActionTester(new SearchTemplatesAction(dbClient, userSession, i18n, newPermissionWsSupport(), dataLoaderWithViews));
i18n.setProjectPermissions();
userSession.logIn().addPermission(ADMINISTER, db.getDefaultOrganization());
}
use of org.sonar.server.ws.WsActionTester in project sonarqube by SonarSource.
the class SelectActionTest method setUp.
@Before
public void setUp() {
ComponentFinder componentFinder = new ComponentFinder(dbClient);
underTest = new SelectAction(dbClient, userSession, componentFinder);
ws = new WsActionTester(underTest);
project = db.components().insertProject();
gate = insertQualityGate();
}
use of org.sonar.server.ws.WsActionTester in project sonarqube by SonarSource.
the class DeselectActionTest method setUp.
@Before
public void setUp() {
ComponentFinder componentFinder = new ComponentFinder(dbClient);
underTest = new DeselectAction(qualityGates, dbClient, componentFinder);
ws = new WsActionTester(underTest);
project = db.components().insertProject();
gate = insertQualityGate();
}
use of org.sonar.server.ws.WsActionTester in project sonarqube by SonarSource.
the class SearchActionTest method setUp.
@Before
public void setUp() {
ComponentFinder componentFinder = new ComponentFinder(dbClient);
underTest = new SearchAction(dbClient, userSession, componentFinder);
ws = new WsActionTester(underTest);
}
use of org.sonar.server.ws.WsActionTester in project sonarqube by SonarSource.
the class DeleteActionTest method setUp.
@Before
public void setUp() {
underTest = new DeleteAction(dbClient, userSession);
ws = new WsActionTester(underTest);
}
Aggregations