Paweł Chudzik 10/9/2017

Mock verifications in spock

Read Original

The article discusses a specific challenge in Spock testing where mock verifications in a 'then' block can fail in asynchronous scenarios. It explains that Spock moves these interactions before the 'when' block, causing problems. The author provides a working solution using multiple 'then' blocks to properly synchronize and verify the mock calls.

Mock verifications in spock

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser