org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortablepublic class EasyMockRunner
extends org.junit.runners.BlockJUnit4ClassRunner
Mock and TestSubject annotations. Note
that this runner only works with JUnit 4.5 or higher| Constructor | Description |
|---|---|
EasyMockRunner(Class<?> klass) |
| Modifier and Type | Method | Description |
|---|---|---|
protected org.junit.runners.model.Statement |
withBefores(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement statement) |
We are required to override a deprecated method because it's the only way the perform
the mock injection before the
@Before of our class being called. |
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, isIgnored, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateFields, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withPotentialTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic EasyMockRunner(Class<?> klass) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorprotected org.junit.runners.model.Statement withBefores(org.junit.runners.model.FrameworkMethod method,
Object target,
org.junit.runners.model.Statement statement)
@Before of our class being called. Using a statement
wouldn't work.withBefores in class org.junit.runners.BlockJUnit4ClassRunnermethod - test method classtarget - test class instancestatement - current statementCopyright © 2001–2018 EasyMock contributors. All rights reserved.