Closed infinite closed 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.
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());
From loomis on 2009-10-02 06:56:03+00:00
Errata for usage:
inOrder().verify().that(someone.firstFunction()); inOrder().verify().that(someone.secondFunction());
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.