Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.mockobjects.dynamic.Mock
Constructor Summary | |
| |
| |
|
Method Summary | |
static String |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
String | |
Object |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
static String |
|
Object |
|
void |
|
String |
|
void |
|
public Mock(Class mockedClass)
public Mock(Class mockedClass, String nonDefaultName)
public Mock(CallFactory callFactory, CallableAddable callableAddable, Class mockedClass, String name)
public static String className(Class c)
public void expect(String methodName)
public void expect(String methodName, Object singleEqualArg)
public void expectAndReturn(String methodName, Object result)
public void expectAndReturn(String methodName, Object singleEqualArg, Object result)
public void expectAndReturn(String methodName, Object singleEqualArg, boolean result)
public void expectAndReturn(String methodName, Object singleEqualArg, int result)
public void expectAndReturn(String methodName, boolean result)
public void expectAndReturn(String methodName, CallSequence deprecated, Object result)
Deprecated.
public void expectAndReturn(String methodName, ConstraintMatcher args, Object result)
public void expectAndReturn(String methodName, ConstraintMatcher args, boolean result)
public void expectAndReturn(String methodName, int result)
public void expectAndThrow(String methodName, Object singleEqualArg, Throwable exception)
public void expectAndThrow(String methodName, Throwable exception)
public void expectAndThrow(String methodName, CallSequence deprecated, Throwable throwable)
Deprecated.
public void expectAndThrow(String methodName, ConstraintMatcher args, Throwable exception)
public void expectNotCalled(String methodName)
Deprecated. Not required, as if methodName is called, you will get a an exception
public void expectVoid(String methodName)
Deprecated.
public void expectVoid(String methodName, Object equalArg)
Deprecated.
public String getMockName()
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
public void matchAndReturn(String methodName, Object result)
public void matchAndReturn(String methodName, Object singleEqualArg, Object result)
public void matchAndReturn(String methodName, Object singleEqualArg, boolean result)
public void matchAndReturn(String methodName, Object singleEqualArg, int result)
public void matchAndReturn(String methodName, boolean result)
public void matchAndReturn(String methodName, boolean singleEqualArg, Object result)
public void matchAndReturn(String methodName, int result)
public void matchAndReturn(String methodName, int singleEqualArg, Object result)
public void matchAndThrow(String methodName, Object singleEqualArg, Throwable throwable)
public void matchAndThrow(String methodName, Throwable throwable)
public void matchAndThrow(String methodName, boolean singleEqualArg, Throwable throwable)
public void matchAndThrow(String methodName, ConstraintMatcher args, Throwable throwable)
public void matchAndThrow(String methodName, int singleEqualArg, Throwable throwable)
public static String mockNameFromClass(Class c)
public Object proxy()
public void reset()
public String toString()
public void verify()
Throw an AssertionFailedException if any expectations have not been met.
- Specified by:
- verify in interface Verifiable