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 | Description |
---|---|
WrongInvocationOrderError(IMockInteraction interaction,
IMockInvocation lastInvocation) |
Modifier and Type | Method | Description |
---|---|---|
IMockInteraction |
getInteraction() |
|
IMockInvocation |
getLastInvocation() |
|
java.lang.String |
getMessage() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toString
public WrongInvocationOrderError(IMockInteraction interaction, IMockInvocation lastInvocation)
public IMockInteraction getInteraction()
public IMockInvocation getLastInvocation()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
Copyright © 2018. All rights reserved