WebserviceMockConfig

data class WebserviceMockConfig : Parcelable

The configuration of a WebserviceMock.

Constructors

Link copied to clipboard
fun WebserviceMockConfig(    mockName: String,     requestUriPrefix: NonSensitiveUri,     forwardBaseUri: NonSensitiveUri,     sensitiveQueryParameters: List<String>,     requestResponseMode: RequestResponseMode = RequestResponseMode.FORWARD,     failTestOnError: Boolean = true,     enabledTags: ArrayList<String> = ArrayList(),     doNotProlongCaptureYieldOnResponse: Boolean = false,     maxFailedRequestCount: Int = 0)

Properties

Link copied to clipboard
val doNotProlongCaptureYieldOnResponse: Boolean = false

Don't prolong a running capture yield when a matching response is captured.

Link copied to clipboard
val enabledTags: ArrayList<String>

Replay responses are by default disabled when they have custom tags. Those responses can be enabled by adding the custom tag to this property.

Link copied to clipboard
val failTestOnError: Boolean = true

When true fail the test on any error. When false, the errors are only logged.

Link copied to clipboard
val forwardBaseUri: ParcelableNonSensitiveUri

Base URI prefix used for forwarding the request to another server.

Link copied to clipboard
val maxFailedRequestCount: Int

Defines how many requests can fail without failing the test.

Link copied to clipboard
val mockName: String

Mock identifier.

Link copied to clipboard
val requestResponseMode: RequestResponseMode

Defines how the webservice mock should handle the requests.

Link copied to clipboard
val requestUriPrefix: ParcelableNonSensitiveUri

Prefix of request URI handled by this mock.

Link copied to clipboard
val sensitiveQueryParameters: List<String>

URI query parameters that are considered sensitive. Their values are replaced by NonSensitiveUri.HIDDEN_VALUE before logging the request or writing the URI to a persistent storage.

Functions

Link copied to clipboard
open override fun toString(): String

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)