|
JSF Test Framework: Mockito 1.1.2 | |||||||||
| 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.jboss.test.faces.mockito.runner.FacesMockitoRunner
public class FacesMockitoRunner
JUnit runner for running mocked JSF environment.
It initialized MockFacesEnvironment and is able to inject mocked JSF classes held by MockFacesEnvironment to
current test instance.
Similarly to MockitoJUnitRunner, it uses MockitoAnnotations.initMocks(Object) on test instance to mock all
the test dependencies annotated by Mockito annotations.
| Constructor Summary | |
|---|---|
FacesMockitoRunner(Class<?> klass)
Instantiates a new faces mockito runner. |
|
| Method Summary | |
|---|---|
void |
run(org.junit.runner.notification.RunNotifier notifier)
|
protected void |
runAfter(Object target)
Run after each test |
protected void |
runBefore(Object target)
Run before each test |
protected org.junit.runners.model.Statement |
withAfters(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement originalStatement)
|
protected org.junit.runners.model.Statement |
withBefores(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement originalStatement)
|
| Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner |
|---|
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, methodBlock, methodInvoker, possiblyExpectingExceptions, runChild, testName, validateConstructor, validateInstanceMethods, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withPotentialTimeout |
| Methods inherited from class org.junit.runners.ParentRunner |
|---|
childrenInvoker, classBlock, filter, getDescription, getName, getTestClass, 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 |
| Constructor Detail |
|---|
public FacesMockitoRunner(Class<?> klass)
throws org.junit.runners.model.InitializationError
klass - the class
org.junit.runners.model.InitializationError - the initialization error| Method Detail |
|---|
public void run(org.junit.runner.notification.RunNotifier notifier)
run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
protected org.junit.runners.model.Statement withBefores(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement originalStatement)
withBefores in class org.junit.runners.BlockJUnit4ClassRunner
protected org.junit.runners.model.Statement withAfters(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement originalStatement)
withAfters in class org.junit.runners.BlockJUnit4ClassRunnerprotected void runBefore(Object target)
target - the target test instanceprotected void runAfter(Object target)
target - the target test instance
|
JSF Test Framework: Mockito 1.1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||