Search in sources :

Example 1 with QProfileLookup

use of org.sonar.server.qualityprofile.QProfileLookup in project sonarqube by SonarSource.

the class SearchActionTest method setUp.

@Before
public void setUp() {
    xoo1 = LanguageTesting.newLanguage("xoo1");
    xoo2 = LanguageTesting.newLanguage("xoo2");
    Languages languages = new Languages(xoo1, xoo2);
    ws = new WsActionTester(new SearchAction(new SearchDataLoader(languages, new QProfileLookup(dbClient), new QProfileFactory(dbClient, defaultOrganizationProvider), dbClient, new ComponentFinder(dbClient), activeRuleIndex), languages));
}
Also used : ComponentFinder(org.sonar.server.component.ComponentFinder) QProfileFactory(org.sonar.server.qualityprofile.QProfileFactory) Languages(org.sonar.api.resources.Languages) WsActionTester(org.sonar.server.ws.WsActionTester) QProfileLookup(org.sonar.server.qualityprofile.QProfileLookup) Before(org.junit.Before)

Example 2 with QProfileLookup

use of org.sonar.server.qualityprofile.QProfileLookup in project sonarqube by SonarSource.

the class SetDefaultActionTest method setUp.

@Before
public void setUp() {
    createProfiles();
    tester = new WsTester(new QProfilesWs(mock(RuleActivationActions.class), mock(BulkRuleActivationActions.class), new SetDefaultAction(LanguageTesting.newLanguages(xoo1Key, xoo2Key), new QProfileLookup(dbClient), new QProfileFactory(dbClient, defaultOrganizationProvider), wsSupport)));
}
Also used : QProfileFactory(org.sonar.server.qualityprofile.QProfileFactory) WsTester(org.sonar.server.ws.WsTester) QProfileLookup(org.sonar.server.qualityprofile.QProfileLookup) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)2 QProfileFactory (org.sonar.server.qualityprofile.QProfileFactory)2 QProfileLookup (org.sonar.server.qualityprofile.QProfileLookup)2 Languages (org.sonar.api.resources.Languages)1 ComponentFinder (org.sonar.server.component.ComponentFinder)1 WsActionTester (org.sonar.server.ws.WsActionTester)1 WsTester (org.sonar.server.ws.WsTester)1