Revert "Temporarily disable the unit tests until the rules are moved into the"

This reverts commit ded09b6498.
This commit is contained in:
Andreas Dangel
2017-11-01 18:54:10 +01:00
parent 1d07ad353e
commit c29f2a44e6
4 changed files with 2 additions and 11 deletions

View File

@ -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
}
}

View File

@ -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() {

View File

@ -27,6 +27,6 @@ public class MetricsRulesTest extends SimpleAggregatorTst {
public void setUp() {
addRule(RULESET, "CyclomaticComplexity");
addRule(RULESET, "NPathComplexity");
//addRule(RULESET, "DataClass");
addRule(RULESET, "DataClass");
}
}

View File

@ -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");