infinite / mockito-flex

0 stars 0 forks source link

Verify order of method calls #16

Closed infinite closed 10 years ago

infinite commented 10 years ago

In some cases its important that methods are called in the right order. A way to verify method call order could improve effectiveness of mockito tests.

infinite commented 10 years ago

From loomis on 2009-10-01 19:09:19+00:00

Take a look at M1.2.3 from the download section. Ordered verifications are done like that:

inOrder().verify(someone.firstFunction());\ inOrder().verify(someone.secondFunction());

infinite commented 10 years ago

From loomis on 2009-10-02 06:56:03+00:00

Errata for usage:

inOrder().verify().that(someone.firstFunction()); inOrder().verify().that(someone.secondFunction());