public class GovernatorJunit4ClassRunner
extends org.junit.runners.BlockJUnit4ClassRunner
BlockJUnit4ClassRunner which creates a Governator-Guice
injector from a list of modules, as well as provides utilities for
Mocking/Spying bindings.
See ModulesForTesting, ReplaceWithMock, and
WrapWithSpy for example usage.| Constructor and Description |
|---|
GovernatorJunit4ClassRunner(java.lang.Class<?> klass) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
createTest() |
protected org.junit.runners.model.Statement |
methodBlock(org.junit.runners.model.FrameworkMethod method) |
protected org.junit.runners.model.Statement |
withAfterClasses(org.junit.runners.model.Statement statement) |
protected org.junit.runners.model.Statement |
withAfters(org.junit.runners.model.FrameworkMethod method,
java.lang.Object target,
org.junit.runners.model.Statement statement) |
collectInitializationErrors, computeTestMethods, describeChild, getChildren, getTestRules, isIgnored, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withBefores, withPotentialTimeoutpublic GovernatorJunit4ClassRunner(java.lang.Class<?> klass)
throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorprotected java.lang.Object createTest()
throws java.lang.Exception
createTest in class org.junit.runners.BlockJUnit4ClassRunnerjava.lang.Exceptionprotected org.junit.runners.model.Statement methodBlock(org.junit.runners.model.FrameworkMethod method)
methodBlock in class org.junit.runners.BlockJUnit4ClassRunnerprotected org.junit.runners.model.Statement withAfters(org.junit.runners.model.FrameworkMethod method,
java.lang.Object target,
org.junit.runners.model.Statement statement)
withAfters in class org.junit.runners.BlockJUnit4ClassRunnerprotected org.junit.runners.model.Statement withAfterClasses(org.junit.runners.model.Statement statement)
withAfterClasses in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>