return assertHasWarnings(numberOfWarnings, assertRead(configContent));
}
protected RepositoryConfiguration assertNotValid( int numberOfErrors,
RepositoryConfiguration config ) {
Problems results = config.validate();
assertThat(results.toString(), results.hasProblems(), is(true));
assertThat(results.toString(), results.hasErrors(), is(true));
assertThat(results.toString(), results.errorCount(), is(numberOfErrors));
if (print) {
System.out.println(results);
}
return config;
}