Package org.jmock
Class Mock
java.lang.Object
org.jmock.Mock
- All Implemented Interfaces:
BuilderNamespace
,DynamicMock
,Verifiable
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInvokable
(Invokable invokable) expects
(InvocationMatcher expectation) proxy()
void
registerMethodName
(String id, MatchBuilder builder) void
registerUniqueID
(String id, MatchBuilder builder) void
reset()
void
setDefaultStub
(Stub newDefaultStub) stubs()
toString()
void
verify()
Throw an AssertionFailedException if any expectations have not been met.
-
Constructor Details
-
Mock
-
Mock
-
Mock
-
-
Method Details
-
getMockedType
- Specified by:
getMockedType
in interfaceDynamicMock
-
proxy
- Specified by:
proxy
in interfaceDynamicMock
-
toString
-
verify
public void verify()Description copied from interface:Verifiable
Throw an AssertionFailedException if any expectations have not been met. Implementations of this method must be idempotent: jMock can call this method more than once when verifying expectations at the end of a test.- Specified by:
verify
in interfaceVerifiable
-
addInvokable
- Specified by:
addInvokable
in interfaceDynamicMock
-
stubs
-
expects
-
setDefaultStub
- Specified by:
setDefaultStub
in interfaceDynamicMock
-
reset
public void reset()- Specified by:
reset
in interfaceDynamicMock
-
lookupID
- Specified by:
lookupID
in interfaceBuilderNamespace
-
registerUniqueID
- Specified by:
registerUniqueID
in interfaceBuilderNamespace
-
registerMethodName
- Specified by:
registerMethodName
in interfaceBuilderNamespace
-