View Javadoc

    1   package net.sourceforge.pmd.lang.java.rule.coupling;
    2
    3   import net.sourceforge.pmd.testframework.SimpleAggregatorTst;
    4
    5   import org.junit.Before;
    6
    7
    8   public class CouplingRulesTest extends SimpleAggregatorTst {
    9
    10      private static final String RULESET = "java-coupling";
    11
    12      @Before
    13      public void setUp() {
    14          addRule(RULESET, "CouplingBetweenObjects");
    15          addRule(RULESET, "ExcessiveImports");
    16          addRule(RULESET, "LooseCoupling");
    17          addRule(RULESET, "LoosePackageCoupling");
    18          addRule(RULESET, "LawOfDemeter");
    19      }
    20
    21      public static junit.framework.Test suite() {
    22          return new junit.framework.JUnit4TestAdapter(CouplingRulesTest.class);
    23      }
    24  }