setMockState

fun setMockState(responseFileName: String?)

Sets the mock state for this endpoint.

Passing null reverts the endpoint to EndpointMockState.Network, effectively disabling mocking for it. Passing a non-null responseFileName transitions it to EndpointMockState.Mock with the given file.

Parameters

responseFileName

The response file name to activate, or null to use the actual network