AI Features

Mocking and Lists

This lesson gives an overview of the mocking interface, lists, and exceptions in Spock.

Mocking

Mocking interfaces is extremely easy in Spock. Simply use the Mock method, as shown in the following example ...