Skip to content

Commit

Permalink
fixed some minor documentation
Browse files Browse the repository at this point in the history
--HG--
extra : convert_revision : svn%3Aaa2aecf3-ea3e-0410-9d70-716747e7c967/trunk%40329
  • Loading branch information
mockitoguy committed Jan 27, 2008
1 parent 2228fd2 commit 3641d50
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/org/mockito/Mockito.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,20 +176,14 @@
* firstMock.add("should be called first");
* secondMock.add("should be called second");
*
* //create inOrder object passing only mocks that need to be verified in order
* //create inOrder object passing any mocks that need to be verified in order
* InOrder inOrder = inOrder(firstMock, secondMock);
*
* //following will make sure that firstMock was called before secondMock
* inOrder.verify(firstMock).add("should be called first");
* inOrder.verify(secondMock).add("should be called second");
* </pre>
*
* Verification in order is strict: you cannot leave out interactions from the middle -
* you have to verify interactions one-by-one.
* <p>
* It's a good pattern not to create InOrder object with all mocks.
* Pass to the inOrder method only those mocks that have interactions required to be verified in order.
*
* <h3>Making sure no interactions happened on mock</h3>
*
* <pre>
Expand Down

0 comments on commit 3641d50

Please sign in to comment.