Mocker.allowUnexpectedCalls

Disables exceptions thrown on unexpected calls while in Replay phase Unexpected methods called will return default value of their type

Useful when using mocks as stubs or when you don't want exceptions to change flow of execution of your tests, for example when using nothrow functions

Default: false

class Mocker
void
allowUnexpectedCalls
(
bool allow
)

Meta