Package org.eclipse.jetty.toolchain.test
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.BlockJUnit4ClassRunnerTiered Junit 4 Test Runner.Supports @
Slowand @Stresssupplemental 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
Fields Modifier and Type Field Description private booleanslowTestsEnabledprivate booleanstressTestsEnabled
-
Constructor Summary
Constructors Constructor Description AdvancedRunner(java.lang.Class<?> klass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanisEnabled(java.lang.String key, boolean def)private voidnotify(java.lang.String msg, org.junit.runner.Description description)protected voidrunChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)-
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, withPotentialTimeout
-
Methods inherited from class org.junit.runners.ParentRunner
childrenInvoker, classBlock, classRules, createTestClass, filter, getDescription, getName, getRunnerAnnotations, getTestClass, order, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses, withInterruptIsolation
-
-
-
-
Method Detail
-
isEnabled
private boolean isEnabled(java.lang.String key, boolean def)
-
runChild
protected void runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)- Overrides:
runChildin classorg.junit.runners.BlockJUnit4ClassRunner
-
notify
private void notify(java.lang.String msg, org.junit.runner.Description description)
-
-