Technically Feasible

Stubbing and Mocking in Java with the Spock Testing Framework

on semaphoreci.com

Learn how to create true Java unit tests by mocking all external dependencies in your unit tests with the Spock testing framework.