org.glassfish.fighterfish.test.util
Class FighterFishJUnitRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.glassfish.fighterfish.test.util.FighterFishJUnitRunner
- All Implemented Interfaces:
- org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
public class FighterFishJUnitRunner
- extends org.junit.runners.BlockJUnit4ClassRunner
- Author:
- Sanjeeb.Sahoo@Sun.COM
|
Method Summary |
protected org.junit.runners.model.Statement |
classBlock(org.junit.runner.notification.RunNotifier notifier)
Override to avoid running BeforeClass and AfterClass by the driver. |
protected void |
collectInitializationErrors(java.util.List<java.lang.Throwable> errors)
|
protected java.util.List<org.junit.runners.model.FrameworkMethod> |
getChildren()
We overwrite those with reactor content |
protected org.junit.runners.model.Statement |
methodBlock(org.junit.runners.model.FrameworkMethod method)
Override to avoid running Before, After and Rule methods by the driver. |
protected org.junit.runners.model.Statement |
methodInvoker(org.junit.runners.model.FrameworkMethod method,
java.lang.Object test)
|
void |
run(org.junit.runner.notification.RunNotifier notifier)
|
protected void |
validatePublicVoidNoArgMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
boolean isStatic,
java.util.List<java.lang.Throwable> errors)
|
| Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner |
computeTestMethods, createTest, describeChild, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateInstanceMethods, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout |
| Methods inherited from class org.junit.runners.ParentRunner |
childrenInvoker, filter, getDescription, getName, getTestClass, setScheduler, sort, 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 |
FighterFishJUnitRunner
public FighterFishJUnitRunner(java.lang.Class<?> klass)
throws java.lang.Exception
- Throws:
java.lang.Exception
run
public void run(org.junit.runner.notification.RunNotifier notifier)
- Overrides:
run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
classBlock
protected org.junit.runners.model.Statement classBlock(org.junit.runner.notification.RunNotifier notifier)
- Override to avoid running BeforeClass and AfterClass by the driver.
They shall only be run by the container.
- Overrides:
classBlock in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
methodBlock
protected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
- Override to avoid running Before, After and Rule methods by the driver.
They shall only be run by the container.
- Overrides:
methodBlock in class org.junit.runners.BlockJUnit4ClassRunner
getChildren
protected java.util.List<org.junit.runners.model.FrameworkMethod> getChildren()
- We overwrite those with reactor content
- Overrides:
getChildren in class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors
protected void collectInitializationErrors(java.util.List<java.lang.Throwable> errors)
- Overrides:
collectInitializationErrors in class org.junit.runners.BlockJUnit4ClassRunner
methodInvoker
protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method,
java.lang.Object test)
- Overrides:
methodInvoker in class org.junit.runners.BlockJUnit4ClassRunner
validatePublicVoidNoArgMethods
protected void validatePublicVoidNoArgMethods(java.lang.Class<? extends java.lang.annotation.Annotation> annotation,
boolean isStatic,
java.util.List<java.lang.Throwable> errors)
- Overrides:
validatePublicVoidNoArgMethods in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
Copyright © 2013. All Rights Reserved.