public class Invocation extends Object implements org.hamcrest.SelfDescribing
Modifier and Type | Class and Description |
---|---|
static class |
Invocation.ExpectationMode
Support distinguish between building expectations and asserting against expectations.
|
Modifier and Type | Field and Description |
---|---|
static Object[] |
NO_PARAMETERS |
Constructor and Description |
---|
Invocation(Invocation.ExpectationMode mode,
Invocation other) |
Invocation(Invocation.ExpectationMode mode,
Object invoked,
Method method,
Object... parameterValues) |
Invocation(Object invoked,
Method method,
Object... parameterValues) |
Modifier and Type | Method and Description |
---|---|
Object |
applyTo(Object target) |
void |
checkReturnTypeCompatibility(Object value) |
void |
describeTo(org.hamcrest.Description description) |
boolean |
equals(Invocation other) |
boolean |
equals(Object other) |
Method |
getInvokedMethod() |
Object |
getInvokedObject() |
Object |
getParameter(int i) |
int |
getParameterCount() |
Object[] |
getParametersAsArray() |
int |
hashCode() |
boolean |
isBuildingExpectation() |
String |
toString() |
public static final Object[] NO_PARAMETERS
public Invocation(Invocation.ExpectationMode mode, Object invoked, Method method, Object... parameterValues)
public Invocation(Invocation.ExpectationMode mode, Invocation other)
public boolean equals(Invocation other)
public void describeTo(org.hamcrest.Description description)
describeTo
in interface org.hamcrest.SelfDescribing
public Object getInvokedObject()
public Method getInvokedMethod()
public int getParameterCount()
public Object getParameter(int i)
public Object[] getParametersAsArray()
public void checkReturnTypeCompatibility(Object value)
public boolean isBuildingExpectation()
Copyright © 2003–2024 jMock. All rights reserved.