@Test
public void shouldParseOnlyWantedProfile() {
BuiltInQualityProfilesDefinition.Context context = new BuiltInQualityProfilesDefinition.Context();
NewBuiltInQualityProfile newProfile = context.createBuiltInQualityProfile("Foo way", "java");
new BuiltInQualityProfileAnnotationLoader().load(newProfile, "squid", FakeRule.class, RuleOnOtherProfile.class, RuleNoProfile.class);
newProfile.done();
assertThat(context.profile("java", "Foo way").rule(RuleKey.of("squid", "fake"))).isNotNull();
assertThat(context.profile("java", "Foo way").rule(RuleKey.of("squid", "other"))).isNull();
}
}