forked from mockito/mockito
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Christian Schwarz edited this page Jun 1, 2016
·
13 revisions
Method | returns immediatly when ... |
---|---|
never().within(50) | a matching call was detected, the verification fail |
atLeast(int).within(50) | more matching calls than needed were detected, the test pass |
atMost(int).within(50) | more matching calls than expected were detected, the verification fail |
only().within(50) | more than one matching calls was detected, the verification fail |
Method | fails fast if | succeed fast if | fails after time elapse if | succeed after time elapsed if |
---|---|---|---|---|
after(..).never() | an invocation occures | never | never | no invocation occured |
after(..).only() | an other invocation occures | never | never | no other invocation occured |
timeout(..).only() | an other invocation occures | never | never | no other invocation occured |
Bugs
after(..).only
- doesn't fail fast if an unexpected call was detected
- when the verification pass and an argument captor was used there will be more captured arguments than expected
Issues And PR's about concurrent verification