// Path: startupheroes-checkstyle-sonar-plugin/src/test/java/es/startuphero/checkstyle/sonar/BaseRuleTestSupport.java
// public static RulesDefinition.Repository getRepositoryOfRules() {
//   SonarRulesDefinition rulesDefinition = new SonarRulesDefinition(new RulesDefinitionXmlLoader());
//   RulesDefinition.Context context = new RulesDefinition.Context();
//   rulesDefinition.define(context);
//   return context.repository(SonarRulesDefinition.REPOSITORY_KEY);
// }


import org.junit.Test;
import org.sonar.api.rule.Severity;
import org.sonar.api.rules.RuleType;
import org.sonar.api.server.rule.RuleParamType;
import org.sonar.api.server.rule.RulesDefinition.Param;
import org.sonar.api.server.rule.RulesDefinition.Repository;
import org.sonar.api.server.rule.RulesDefinition.Rule;
import static es.startuphero.checkstyle.sonar.BaseRuleTestSupport.getRepositoryOfRules;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
package es.startuphero.checkstyle.sonar;



/**
 * @author ozlem.ulag
 */
public class SonarRulesDefinitionTest {

  @Test
  public void test() {
// Path: startupheroes-checkstyle-sonar-plugin/src/test/java/es/startuphero/checkstyle/sonar/BaseRuleTestSupport.java
// public static RulesDefinition.Repository getRepositoryOfRules() {
//   SonarRulesDefinition rulesDefinition = new SonarRulesDefinition(new RulesDefinitionXmlLoader());
//   RulesDefinition.Context context = new RulesDefinition.Context();
//   rulesDefinition.define(context);
//   return context.repository(SonarRulesDefinition.REPOSITORY_KEY);
// }


// Path: startupheroes-checkstyle-sonar-plugin/src/test/java/es/startuphero/checkstyle/sonar/SonarRulesDefinitionTest.java
import org.junit.Test;
import org.sonar.api.rule.Severity;
import org.sonar.api.rules.RuleType;
import org.sonar.api.server.rule.RuleParamType;
import org.sonar.api.server.rule.RulesDefinition.Param;
import org.sonar.api.server.rule.RulesDefinition.Repository;
import org.sonar.api.server.rule.RulesDefinition.Rule;
import static es.startuphero.checkstyle.sonar.BaseRuleTestSupport.getRepositoryOfRules;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

package es.startuphero.checkstyle.sonar;



/**
 * @author ozlem.ulag
 */
public class SonarRulesDefinitionTest {

  @Test
  public void test() {
    Repository repository = getRepositoryOfRules();