Class AdvancedRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.eclipse.jetty.toolchain.test.AdvancedRunner
- All Implemented Interfaces:
org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Orderable, org.junit.runner.manipulation.Sortable
public class AdvancedRunner
extends org.junit.runners.BlockJUnit4ClassRunner
Tiered Junit 4 Test Runner.
Supports @Slow and
@Stress supplemental
annotation on test methods to allow for filtering of what class of test to execute.
@Test @To enable / disable the various tests, you have some System properties you can utilize.Slowpublic 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 ... }
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate boolean -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors, computeTestMethods, createTest, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutMethods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolationMethods inherited from class org.junit.runner.Runner
testCount
-
Field Details
-
slowTestsEnabled
private boolean slowTestsEnabled -
stressTestsEnabled
private boolean stressTestsEnabled
-
-
Constructor Details
-
AdvancedRunner
- Throws:
org.junit.runners.model.InitializationError
-
-
Method Details
-
isEnabled
-
runChild
protected void runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier) - Overrides:
runChildin classorg.junit.runners.BlockJUnit4ClassRunner
-
notify
-