Search in sources :

Example 1 with QProfileFactory

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

the class DeleteActionTest method setUp.

@Before
public void setUp() {
    xoo1 = LanguageTesting.newLanguage("xoo1");
    xoo2 = LanguageTesting.newLanguage("xoo2");
    tester = new WsTester(new QProfilesWs(mock(RuleActivationActions.class), mock(BulkRuleActivationActions.class), new DeleteAction(new Languages(xoo1, xoo2), new QProfileFactory(dbClient, defaultOrganizationProvider), dbClient, new QProfileWsSupport(userSessionRule, defaultOrganizationProvider))));
}
Also used : QProfileFactory(org.sonar.server.qualityprofile.QProfileFactory) WsTester(org.sonar.server.ws.WsTester) Languages(org.sonar.api.resources.Languages) Before(org.junit.Before)

Example 2 with QProfileFactory

use of org.sonar.server.qualityprofile.QProfileFactory 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 3 with QProfileFactory

use of org.sonar.server.qualityprofile.QProfileFactory 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)

Example 4 with QProfileFactory

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

the class RenameActionTest method setUp.

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

Aggregations

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