use of org.sonar.api.server.profile.BuiltInQualityProfilesDefinition.Context in project sonar-web by SonarSource.
the class SonarWayProfileTest method test.
@Test
public void test() {
SonarWayProfile definition = new SonarWayProfile();
Context context = new Context();
definition.define(context);
BuiltInQualityProfile profile = context.profile("web", "Sonar way");
Assertions.assertThat(profile.name()).isEqualTo("Sonar way");
Assertions.assertThat(profile.language()).isEqualTo(HtmlConstants.LANGUAGE_KEY);
Assertions.assertThat(profile.rules().size()).isGreaterThan(10);
}
Aggregations