withEndpointState
Creates a new state with the specified endpoint state updated.
Return
A new NetworkMockState with the updated endpoint state
Parameters
key
The EndpointKey identifying the group, environment, and endpoint
state
The new endpoint state
fun withEndpointState(groupId: String, environmentId: String, endpointId: String, state: EndpointMockState): NetworkMockState
Creates a new state with the specified endpoint state updated.
Convenience overload of withEndpointState that accepts three separate string identifiers instead of an EndpointKey. Delegates to the EndpointKey overload.
Return
A new NetworkMockState with the updated endpoint state
Parameters
groupId
The com.worldline.devview.networkmock.core.model.ApiGroupConfig identifier
environmentId
endpointId
The com.worldline.devview.networkmock.core.model.EndpointConfig identifier
state
The new endpoint state