Search in sources :

Example 6 with RuleIndexer

use of org.sonar.server.rule.index.RuleIndexer in project sonarqube by SonarSource.

the class RegisterRulesTest method before.

@Before
public void before() {
    when(system.now()).thenReturn(DATE1.getTime());
    ruleIndexer = new RuleIndexer(system, dbClient, esTester.client());
    ruleIndex = new RuleIndex(esTester.client());
    activeRuleIndexer = new ActiveRuleIndexer(system, dbClient, esTester.client());
}
Also used : ActiveRuleIndexer(org.sonar.server.qualityprofile.index.ActiveRuleIndexer) RuleIndex(org.sonar.server.rule.index.RuleIndex) ActiveRuleIndexer(org.sonar.server.qualityprofile.index.ActiveRuleIndexer) RuleIndexer(org.sonar.server.rule.index.RuleIndexer) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)6 RuleIndexer (org.sonar.server.rule.index.RuleIndexer)6 ActiveRuleIndexer (org.sonar.server.qualityprofile.index.ActiveRuleIndexer)5 DbClient (org.sonar.db.DbClient)4 ActiveRuleDto (org.sonar.db.qualityprofile.ActiveRuleDto)3 RuleDto (org.sonar.db.rule.RuleDto)3 ActiveRuleIndex (org.sonar.server.qualityprofile.index.ActiveRuleIndex)2 RuleIndex (org.sonar.server.rule.index.RuleIndex)1 WsTester (org.sonar.server.ws.WsTester)1