|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMocksControl
Controls all the mock objects created by it. For details, see the EasyMock documentation.
Method Summary | ||
---|---|---|
void |
checkOrder(boolean state)
Switches order checking on and off. |
|
|
createMock(java.lang.Class<T> toMock)
Creates a mock object that implements the given interface. |
|
|
createMock(java.lang.String name,
java.lang.Class<T> toMock)
Creates a mock object that implements the given interface. |
|
void |
replay()
Switches the control from record mode to replay mode. |
|
void |
reset()
Removes all expectations for the mock objects of this control. |
|
void |
verify()
Verifies that all expectations were met. |
Methods inherited from interface org.easymock.IExpectationSetters |
---|
andAnswer, andReturn, andStubAnswer, andStubReturn, andStubThrow, andThrow, anyTimes, asStub, atLeastOnce, once, times, times |
Method Detail |
---|
<T> T createMock(java.lang.Class<T> toMock)
T
- the interface that the mock object should implement.toMock
- the class of the interface that the mock object should implement.
<T> T createMock(java.lang.String name, java.lang.Class<T> toMock)
T
- the interface that the mock object should implement.name
- the name of the mock object .toMock
- the class of the interface that the mock object should implement.
java.lang.IllegalArgumentException
- if the name is not a valid Java identifier.void reset()
void replay()
void verify()
void checkOrder(boolean state)
state
- true
switches order checking on, false
switches it off.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |