use of org.sonar.api.utils.ValidationMessages in project sonarqube by SonarSource.
the class XMLProfileParserTest method nameAndLanguageShouldBeMandatory.
@Test
public void nameAndLanguageShouldBeMandatory() {
ValidationMessages validation = ValidationMessages.create();
parse("nameAndLanguageShouldBeMandatory.xml", validation);
assertThat(validation.getErrors()).hasSize(2);
assertThat(validation.getErrors().get(0)).contains("");
}
Aggregations