public class WrongInvocationOrderError extends InteractionNotSatisfiedError
when: ... then: 1 * foo.me() 1 * bar.me() then: // indicates that subsequent interactions must take place after previous interactions 1 * baz.me()Assuming the following invocation order:
| Constructor and Description |
|---|
WrongInvocationOrderError(IMockInteraction interaction,
IMockInvocation lastInvocation) |
| Modifier and Type | Method and Description |
|---|---|
IMockInteraction |
getInteraction() |
IMockInvocation |
getLastInvocation() |
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic WrongInvocationOrderError(IMockInteraction interaction, IMockInvocation lastInvocation)
public IMockInteraction getInteraction()
public IMockInvocation getLastInvocation()
public String getMessage()
getMessage in class Throwable