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 TypeMethodDescriptionvoidaddInvokable(Invokable invokable) expects(InvocationMatcher expectation) proxy()voidregisterMethodName(String id, MatchBuilder builder) voidregisterUniqueID(String id, MatchBuilder builder) voidreset()voidsetDefaultStub(Stub newDefaultStub) stubs()toString()voidverify()Throw an AssertionFailedException if any expectations have not been met.
-
Constructor Details
-
Mock
-
Mock
-
Mock
-
-
Method Details
-
getMockedType
- Specified by:
getMockedTypein interfaceDynamicMock
-
proxy
- Specified by:
proxyin interfaceDynamicMock
-
toString
-
verify
public void verify()Description copied from interface:VerifiableThrow 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:
verifyin interfaceVerifiable
-
addInvokable
- Specified by:
addInvokablein interfaceDynamicMock
-
stubs
-
expects
-
setDefaultStub
- Specified by:
setDefaultStubin interfaceDynamicMock
-
reset
public void reset()- Specified by:
resetin interfaceDynamicMock
-
lookupID
- Specified by:
lookupIDin interfaceBuilderNamespace
-
registerUniqueID
- Specified by:
registerUniqueIDin interfaceBuilderNamespace
-
registerMethodName
- Specified by:
registerMethodNamein interfaceBuilderNamespace
-