Search in sources :

Example 1 with QProfileName

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

the class CompareActionMediumTest method createProfile.

private QualityProfileDto createProfile(String lang, String name, String key) {
    QualityProfileDto profile = QProfileTesting.newQProfileDto("org-123", new QProfileName(lang, name), key);
    db.qualityProfileDao().insert(session, profile);
    session.commit();
    return profile;
}
Also used : QProfileName(org.sonar.server.qualityprofile.QProfileName) QualityProfileDto(org.sonar.db.qualityprofile.QualityProfileDto)

Example 2 with QProfileName

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

the class ChangeParentActionMediumTest method createProfile.

private QualityProfileDto createProfile(String lang, String name) {
    QualityProfileDto profile = QProfileTesting.newQProfileDto("org-123", new QProfileName(lang, name), "p" + lang + "-" + name.toLowerCase());
    db.qualityProfileDao().insert(session, profile);
    return profile;
}
Also used : QProfileName(org.sonar.server.qualityprofile.QProfileName) QualityProfileDto(org.sonar.db.qualityprofile.QualityProfileDto)

Example 3 with QProfileName

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

the class InheritanceActionMediumTest method createProfile.

private QualityProfileDto createProfile(String lang, String name, String key) {
    QualityProfileDto profile = QProfileTesting.newQProfileDto("org-123", new QProfileName(lang, name), key);
    db.qualityProfileDao().insert(session, profile);
    session.commit();
    return profile;
}
Also used : QProfileName(org.sonar.server.qualityprofile.QProfileName) QualityProfileDto(org.sonar.db.qualityprofile.QualityProfileDto)

Example 4 with QProfileName

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

the class QProfilesWsMediumTest method createProfile.

private QualityProfileDto createProfile(String lang) {
    QualityProfileDto profile = QProfileTesting.newQProfileDto("org-123", new QProfileName(lang, "P" + lang), "p" + lang);
    db.qualityProfileDao().insert(session, profile);
    return profile;
}
Also used : QProfileName(org.sonar.server.qualityprofile.QProfileName) QualityProfileDto(org.sonar.db.qualityprofile.QualityProfileDto)

Aggregations

QualityProfileDto (org.sonar.db.qualityprofile.QualityProfileDto)4 QProfileName (org.sonar.server.qualityprofile.QProfileName)4