Revert "Temporarily disable the unit tests until the rules are moved into the"
This reverts commit ded09b6498
.
This commit is contained in:
@ -7,7 +7,6 @@ package net.sourceforge.pmd;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertNull;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
@ -45,10 +44,4 @@ public class RuleSetFactoryTest extends AbstractRuleSetFactoryTest {
|
||||
RuleSet ruleset = ruleSetFactory.createRuleSet(ref);
|
||||
assertNotNull(ruleset);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore("Rule classes need to be moved into the correct packages corresponding to their categories")
|
||||
public void testAllPMDBuiltInRulesMeetConventions() {
|
||||
// disabled test from super class
|
||||
}
|
||||
}
|
||||
|
@ -12,14 +12,12 @@ import java.util.Objects;
|
||||
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.contrib.java.lang.system.RestoreSystemProperties;
|
||||
import org.junit.rules.ExternalResource;
|
||||
import org.junit.rules.TestRule;
|
||||
|
||||
@Ignore
|
||||
public class PMDTaskTest extends AbstractAntTestHelper {
|
||||
|
||||
public PMDTaskTest() {
|
||||
|
@ -27,6 +27,6 @@ public class MetricsRulesTest extends SimpleAggregatorTst {
|
||||
public void setUp() {
|
||||
addRule(RULESET, "CyclomaticComplexity");
|
||||
addRule(RULESET, "NPathComplexity");
|
||||
//addRule(RULESET, "DataClass");
|
||||
addRule(RULESET, "DataClass");
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ public class StrictExceptionRulesTest extends SimpleAggregatorTst {
|
||||
addRule(RULESET, "AvoidThrowingNullPointerException");
|
||||
addRule(RULESET, "AvoidThrowingRawExceptionTypes");
|
||||
addRule(RULESET, "DoNotExtendJavaLangError");
|
||||
//addRule(RULESET, "DoNotExtendJavaLangThrowable");
|
||||
addRule(RULESET, "DoNotExtendJavaLangThrowable");
|
||||
addRule(RULESET, "ExceptionAsFlowControl");
|
||||
addRule(RULESET, "SignatureDeclareThrowsException");
|
||||
addRule(RULESET, "DoNotThrowExceptionInFinally");
|
||||
|
Reference in New Issue
Block a user