}
@Test
public void register_repositories_having_same_name() {
RulesDefinition.Context context = new RulesDefinition.Context();
new RulesDefinition() {
@Override
public void define(Context context) {
context.createRepository("squid", "java").setName("SonarQube").done();
}
}.define(context);
// Repository with same name
new RulesDefinition() {
@Override
public void define(Context context) {
context.createRepository("javascript", "js").setName("SonarQube").done();
}
}.define(context);