Mocker.lastCall

Returns ExpectationSetup object for most recent call on a method of a mock object.

This object allows you to set various properties of the expectation, such as return value, number of repetitions or matching options.

class Mocker
lastCall
(
)

Examples

Mocker m = new Mocker;
Object o = m.Mock!(Object);
o.toString;
m.LastCall().returns("hello?");

Meta