I have the following method that I wish to verify behaviour on.
public void methodToTest(Exception e, ActionErrors errors) { ... errors.add("exc
If the order of both add() calls is relevant, you can use InOrder:
add()
InOrder
InOrder inOrder = inOrder(errors); inOrder.verify(errors).add(eq("exception.message"), any(ActionError.class)); inOrder.verify(errors).add(eq("exception.detail"), any(ActionError.class));