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() |
java.lang.String |
getMessage() |
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 © 2012. All rights reserved