MockMatch

data class MockMatch(val key: OperationKey, val config: Operation, val delayMs: Long? = null)

A matched operation for an incoming HTTP request, returned by com.worldline.devview.networkmock.core.repository.MockConfigRepository.findMatchingMock.

See also

Constructors

Link copied to clipboard
constructor(key: OperationKey, config: Operation, delayMs: Long? = null)

Properties

Link copied to clipboard

The matched Operation

Link copied to clipboard

The resolved response delay for this match — Operation.delayMs falling back to the owning ApiSpec.delayMs, or null if neither declares one

Link copied to clipboard

The OperationKey carrying the matched spec and operation identifiers

Link copied to clipboard

The Operation.operationId of the match. Convenience accessor for OperationKey.operationId.

Link copied to clipboard

The ApiSpec.id of the matched spec. Convenience accessor for OperationKey.specId.