public class AdvancedRunner
extends org.junit.runners.BlockJUnit4ClassRunner
Supports @Slow and
@Stress supplemental
annotation on test methods to allow for filtering of what class of test to execute.
@Test
@Slow
public void testLotsOfStuff() {
... do something long and complicated ...
}
@Test
@Stress("requirements to satisfy this test")
public void testUsingLotsOfResources() {
... do something that uses lots of resources ...
}
@Test
public void testSimple() {
... do something that happens quickly ...
}
To enable / disable the various tests, you have some System properties you can utilize.
| Constructor and Description |
|---|
AdvancedRunner(Class<?> klass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier) |
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutpublic AdvancedRunner(Class<?> klass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.