|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.core.TestListener
org.unitils.easymock.EasyMockModule.EasyMockTestListener
protected class EasyMockModule.EasyMockTestListener
Test listener that handles the mock creation and injection.
| Constructor Summary | |
|---|---|
protected |
EasyMockModule.EasyMockTestListener()
|
| Method Summary | |
|---|---|
void |
afterTestMethod(java.lang.Object testObject,
java.lang.reflect.Method testMethod,
java.lang.Throwable throwable)
After each test is executed this calls EasyMockModule.verify() to verify the recorded behavior
of all created mocks. |
void |
beforeTestSetUp(java.lang.Object testObject,
java.lang.reflect.Method testMethod)
Before the test is executed this calls EasyMockModule.createAndInjectRegularMocksIntoTest(Object) to
create and inject all mocks on the class. |
| Methods inherited from class org.unitils.core.TestListener |
|---|
afterCreateTestObject, afterTestTearDown, beforeTestClass, beforeTestMethod |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected EasyMockModule.EasyMockTestListener()
| Method Detail |
|---|
public void beforeTestSetUp(java.lang.Object testObject,
java.lang.reflect.Method testMethod)
EasyMockModule.createAndInjectRegularMocksIntoTest(Object) to
create and inject all mocks on the class.
beforeTestSetUp in class TestListener
public void afterTestMethod(java.lang.Object testObject,
java.lang.reflect.Method testMethod,
java.lang.Throwable throwable)
EasyMockModule.verify() to verify the recorded behavior
of all created mocks.
afterTestMethod in class TestListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||