public class PMDTestRunner
extends org.junit.runner.Runner
implements org.junit.runner.manipulation.Filterable
Filterable
).
In order to use it, you'll need to subclass SimpleAggregatorTst
and
annotate your test class with RunWith:
@
RunWith(PMDTestRunner.class)
public class MyRuleSetTest extends SimpleAggregatorTst {
...
}
Constructor and Description |
---|
PMDTestRunner(Class<? extends SimpleAggregatorTst> klass)
Creates a new
PMDTestRunner for the given test class. |
Modifier and Type | Method and Description |
---|---|
void |
filter(org.junit.runner.manipulation.Filter filter) |
org.junit.runner.Description |
getDescription() |
void |
run(org.junit.runner.notification.RunNotifier notifier) |
public PMDTestRunner(Class<? extends SimpleAggregatorTst> klass) throws org.junit.runners.model.InitializationError
PMDTestRunner
for the given test class.klass
- the test class that is under testorg.junit.runners.model.InitializationError
- any errorpublic org.junit.runner.Description getDescription()
getDescription
in interface org.junit.runner.Describable
getDescription
in class org.junit.runner.Runner
public void run(org.junit.runner.notification.RunNotifier notifier)
run
in class org.junit.runner.Runner
public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException
filter
in interface org.junit.runner.manipulation.Filterable
org.junit.runner.manipulation.NoTestsRemainException
Copyright © 2002–2017 PMD. All rights reserved.