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))));
}
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));
}
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)));
}
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)));
}
Aggregations