protected RepositoryConfiguration assertValidWithWarnings( int warnings,
RepositoryConfiguration config ) {
Problems results = config.validate();
assertThat(results.toString(), results.hasErrors(), is(false));
assertThat(results.toString(), results.warningCount(), is(warnings));
return config;
}
protected RepositoryConfiguration assertValid( String configContent ) {
return assertValid(assertRead(configContent));