Search in sources :

Example 6 with RuleRepositoryDto

use of org.sonar.db.rule.RuleRepositoryDto in project sonarqube by SonarSource.

the class CompareActionMediumTest method createRepository.

private void createRepository(String repositoryKey, String repositoryLanguage, String repositoryName) {
    RuleRepositoryDto dto = new RuleRepositoryDto(repositoryKey, repositoryLanguage, repositoryName);
    db.ruleRepositoryDao().insert(session, asList(dto));
    session.commit();
}
Also used : RuleRepositoryDto(org.sonar.db.rule.RuleRepositoryDto)

Aggregations

RuleRepositoryDto (org.sonar.db.rule.RuleRepositoryDto)6 DbSession (org.sonar.db.DbSession)3 Test (org.junit.Test)2 WsTester (org.sonar.server.ws.WsTester)2 Locale (java.util.Locale)1 Before (org.junit.Before)1 Language (org.sonar.api.resources.Language)1 RuleKey (org.sonar.api.rule.RuleKey)1 JsonWriter (org.sonar.api.utils.text.JsonWriter)1 ActiveRuleDto (org.sonar.db.qualityprofile.ActiveRuleDto)1 QualityProfileDto (org.sonar.db.qualityprofile.QualityProfileDto)1 RuleDto (org.sonar.db.rule.RuleDto)1 QProfileComparisonResult (org.sonar.server.qualityprofile.QProfileComparison.QProfileComparisonResult)1