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 @To enable / disable the various tests, you have some System properties you can utilize.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 ... }
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, withPotentialTimeout
public AdvancedRunner(Class<?> klass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationError
Copyright © 1995–2024 Mort Bay Consulting. All rights reserved.