forked from phoedos/pmd
no need to redefine testAll() and ignore it if no rule is inserted in setup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5586 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -1,29 +1,18 @@
|
||||
|
||||
package test.net.sourceforge.pmd.rules;
|
||||
|
||||
import net.sourceforge.pmd.Rule;
|
||||
package test.net.sourceforge.pmd.rules;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import test.net.sourceforge.pmd.testframework.SimpleAggregatorTst;
|
||||
|
||||
public class UselessAssignmentRuleTest extends SimpleAggregatorTst {
|
||||
private Rule rule;
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
rule = findRule("rulesets/scratchpad.xml", "UselessAssignment");
|
||||
}
|
||||
|
||||
@Ignore("Scratchpad rule - throwing exception")
|
||||
@Test
|
||||
public void testAll() {
|
||||
runTests(rule);
|
||||
}
|
||||
|
||||
public static junit.framework.Test suite() {
|
||||
return new junit.framework.JUnit4TestAdapter(UselessAssignmentRuleTest.class);
|
||||
}
|
||||
}
|
||||
public class UselessAssignmentRuleTest extends SimpleAggregatorTst {
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
// addRule("scratchpad", "UselessAssignment");
|
||||
}
|
||||
|
||||
public static junit.framework.Test suite() {
|
||||
return new junit.framework.JUnit4TestAdapter(
|
||||
UselessAssignmentRuleTest.class);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user