|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.rioproject.test.RioTestRunner
public class RioTestRunner
RioTestRunner is a custom extension of BlockJUnit4ClassRunner
NOTE: RioTestRunner requires JUnit 4.5. or later
| Constructor Summary | |
|---|---|
RioTestRunner(Class<?> clazz)
Constructs a new RioTestRunner |
|
| Method Summary | |
|---|---|
protected Object |
createTest()
Delegates to BlockJUnit4ClassRunner.createTest() to create the test |
protected TestConfig |
createTestConfig(String testClassName)
Creates A testConfig. |
protected TestManager |
getManager()
Get the TestManager associated with this runner. |
void |
run(org.junit.runner.notification.RunNotifier notifier)
Check whether the test is enabled in the first place. |
protected void |
runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier)
|
protected org.junit.runners.model.Statement |
withAfterClasses(org.junit.runners.model.Statement statement)
|
protected org.junit.runners.model.Statement |
withPotentialTimeout(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement next)
|
| Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner |
|---|
collectInitializationErrors, computeTestMethods, describeChild, getChildren, methodBlock, methodInvoker, possiblyExpectingExceptions, testName, validateConstructor, validateInstanceMethods, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores |
| Methods inherited from class org.junit.runners.ParentRunner |
|---|
childrenInvoker, classBlock, filter, getDescription, getName, getTestClass, setScheduler, sort, validatePublicVoidNoArgMethods, 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 |
| Constructor Detail |
|---|
public RioTestRunner(Class<?> clazz)
throws org.junit.runners.model.InitializationError
RioTestRunner
clazz - the Class object corresponding to the test class to be run
org.junit.runners.model.InitializationError - If the class
cannot be created| Method Detail |
|---|
protected org.junit.runners.model.Statement withAfterClasses(org.junit.runners.model.Statement statement)
withAfterClasses in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>public void run(org.junit.runner.notification.RunNotifier notifier)
@IfPropertySet annotation from running altogether,
even skipping the execution of prepareTestInstance listener methods.
This method also creates and initializes a TestManager providing
Rio testing functionality to standard JUnit tests.
run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>createTestConfig(String)
protected Object createTest()
throws Exception
BlockJUnit4ClassRunner.createTest() to create the test
createTest in class org.junit.runners.BlockJUnit4ClassRunnerExceptionBlockJUnit4ClassRunner#createTest(), first checks for TestManager injection
protected org.junit.runners.model.Statement withPotentialTimeout(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement next)
withPotentialTimeout in class org.junit.runners.BlockJUnit4ClassRunnerprotected TestConfig createTestConfig(String testClassName)
testClassName - The name of the test class to be run
protected final TestManager getManager()
TestManager associated with this runner.
protected void runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier)
runChild in class org.junit.runners.BlockJUnit4ClassRunner
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||