use of org.sonar.server.qualityprofile.QProfileTreeImpl in project sonarqube by SonarSource.
the class ChangeParentActionTest method setUp.
@Before
public void setUp() {
dbClient = db.getDbClient();
dbSession = db.getSession();
EsClient esClient = es.client();
ruleIndex = new RuleIndex(esClient, System2.INSTANCE);
ruleIndexer = new RuleIndexer(esClient, dbClient);
activeRuleIndexer = new ActiveRuleIndexer(dbClient, esClient);
TypeValidations typeValidations = new TypeValidations(Collections.emptyList());
RuleActivator ruleActivator = new RuleActivator(System2.INSTANCE, dbClient, typeValidations, userSession);
qProfileTree = new QProfileTreeImpl(dbClient, ruleActivator, System2.INSTANCE, activeRuleIndexer, mock(QualityProfileChangeEventService.class));
ChangeParentAction underTest = new ChangeParentAction(dbClient, qProfileTree, new Languages(), new QProfileWsSupport(dbClient, userSession), userSession);
ws = new WsActionTester(underTest);
userSession.logIn().addPermission(ADMINISTER_QUALITY_PROFILES);
}
Aggregations