Stub Handle
A lightweight public handle to a registered stub.
Provides read-only access to the stub's name and invocation count without exposing the internal Stub type.
Returned by BuildingStep.respondsWith and related methods, and by MokksyServer.getStub, MokksyServer.allStubs, and MokksyServer.findAllUnmatchedStubs.
Properties
Functions
Link copied to clipboard
How many times this stub has been matched so far.
Link copied to clipboard
Returns a VerificationBuilder for specifying the expected invocation count.
Convenience shortcut — asserts this stub was called exactly times times.