|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockito.internal.invocation.Invocation
public class Invocation
Method call on a mock object.
Contains sequence number which should be globally unique and is used for verification in order.
Contains stack trace of invocation
| Constructor Summary | |
|---|---|
Invocation(java.lang.Object mock,
java.lang.reflect.Method method,
java.lang.Object[] args,
int sequenceNumber)
|
|
| Method Summary | |
|---|---|
protected java.util.List<org.hamcrest.Matcher> |
argumentsToMatchers()
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object[] |
getArguments()
returns arguments passed to the method |
java.lang.reflect.Method |
getMethod()
returns the method |
java.lang.Object |
getMock()
returns the mock object |
java.lang.Integer |
getSequenceNumber()
|
HasStackTrace |
getStackTrace()
|
int |
hashCode()
|
static boolean |
isToString(InvocationOnMock invocation)
|
boolean |
isValidException(java.lang.Throwable throwable)
|
boolean |
isVerified()
|
boolean |
isVerifiedInOrder()
|
void |
markVerified()
|
void |
markVerifiedInOrder()
|
boolean |
printsInMultilines()
|
java.lang.String |
toMultilineString()
|
java.lang.String |
toString()
|
protected java.lang.String |
toString(java.util.List<org.hamcrest.Matcher> matchers,
boolean forceMultiline)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Invocation(java.lang.Object mock,
java.lang.reflect.Method method,
java.lang.Object[] args,
int sequenceNumber)
| Method Detail |
|---|
public java.lang.Object getMock()
InvocationOnMock
getMock in interface InvocationOnMockpublic java.lang.reflect.Method getMethod()
InvocationOnMock
getMethod in interface InvocationOnMockpublic java.lang.Object[] getArguments()
InvocationOnMock
getArguments in interface InvocationOnMockpublic void markVerified()
public boolean isVerified()
public java.lang.Integer getSequenceNumber()
public void markVerifiedInOrder()
public boolean isVerifiedInOrder()
public HasStackTrace getStackTrace()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface PrintableInvocationtoString in interface CanPrintInMultilinestoString in class java.lang.Objectpublic boolean printsInMultilines()
printsInMultilines in interface CanPrintInMultilinespublic java.lang.String toMultilineString()
toMultilineString in interface CanPrintInMultilines
protected java.lang.String toString(java.util.List<org.hamcrest.Matcher> matchers,
boolean forceMultiline)
protected java.util.List<org.hamcrest.Matcher> argumentsToMatchers()
public static boolean isToString(InvocationOnMock invocation)
public boolean isValidException(java.lang.Throwable throwable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||