org.sonatype.tests.http.runner.junit
Class ConfigurationRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.sonatype.tests.http.runner.junit.ConfigurationRunner
- All Implemented Interfaces:
- org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
public class ConfigurationRunner
- extends org.junit.runners.BlockJUnit4ClassRunner
Junit4 test runner supporting multiple server configurations for the test class. This runner can only execute tests
from classes that extend/implement DefaultSuiteConfiguration
or DefaultSuiteConfiguration
.
The runner provides annotations to configure the used configurations.
Configurators
takes SuiteConfigurator
classes and
uses them to run every test method. Every entry in
ConfiguratorList
will be loaded as a resource. The runner
expects every line of the resource to be the class name of a SuiteConfigurator.
IgnoreConfigurators
may be used to to ignore
configurators from the list.
If none of the annotations are present, the runner tries to load a default list (
DefaultSuiteConfigurators.list
).
- Author:
- Benjamin Hanzelmann
- See Also:
SuiteConfigurator
,
DefaultSuiteConfiguration
Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner |
collectInitializationErrors, createTest, describeChild, getChildren, getTestRules, methodBlock, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout |
Methods inherited from class org.junit.runners.ParentRunner |
childrenInvoker, classBlock, classRules, filter, getDescription, getName, getRunnerAnnotations, getTestClass, run, runLeaf, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses |
Methods inherited from class org.junit.runner.Runner |
testCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurationRunner
public ConfigurationRunner(Class<?> klass)
throws org.junit.runners.model.InitializationError
- Throws:
org.junit.runners.model.InitializationError
computeTestMethods
protected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
- Overrides:
computeTestMethods
in class org.junit.runners.BlockJUnit4ClassRunner
validateInstanceMethods
protected void validateInstanceMethods(List<Throwable> errors)
- Overrides:
validateInstanceMethods
in class org.junit.runners.BlockJUnit4ClassRunner
methodInvoker
protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method,
Object test)
- Overrides:
methodInvoker
in class org.junit.runners.BlockJUnit4ClassRunner
Copyright © 2010-2013 Sonatype, Inc.. All Rights Reserved.