spat1978 / mockito

Automatically exported from code.google.com/p/mockito
0 stars 0 forks source link

ArgumentCaptor should provide #awaitValue( ) #448

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be handy if the ArgumentCaptor could provide a method to await the 
availability of the first captured value. The use case becomes relevant when 
async code is tested and an argument is passed to a mock that is not the 
main/test thread.

It would be nice to provide an uninterruptable and a interruptable version.

Original issue reported on code.google.com by chriss....@gmail.com on 27 Aug 2013 at 9:19

GoogleCodeExporter commented 8 years ago
Hi, could that be handled using timeout / after methods ?

Original comment by brice.du...@gmail.com on 4 Dec 2013 at 2:09