Back to Browse

Spock Tutorial on Stubbing and Spying

4.5K views
May 24, 2019
13:20

Stubs and Spies in Spock with Examples. Stubbing is nothing but setting up pre-defined or canned responses on the Mock invocations to test different flows/scenarios of the application under test. Spies are based on real objects i.e. they need the interface implementation and not the abstract interface itself. Both Stubs and Spies in the Spock Framework are explained here in detail.

Download

0 formats

No download links available.

Spock Tutorial on Stubbing and Spying | NatokHD