I recently finished up Steve and Nat's book and on thing of interest
that he introcduced was using the concept of states
) rather than verifying interactions
occur in order. Essentially, when different interactions occur you can
say that the object is in a certain "state" and then verify that
state. This makes a lot of sense for the same reasons I never ever use
the InOrder verifications in mockito... in my experience InOrder
verifications either indicate some very procedural logic or in the
cases where it might seem to be relevant the tests produced with it
are often very brittle.
After seeing several examples of "state" based verification, I like it
and I keep thinking... how could we introduce a similar feature in
mockito? As another method tacked on to givne/when maybe? Something
Just a thought.
You received this message because you are subscribed to the Google Groups "mockito" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/mockito?hl=en.