StubConfiguration

data class StubConfiguration @JvmOverloads constructor(val name: String? = null, val eventuallyRemove: Boolean = false, val verbose: Boolean = false)(source)

Configuration for a stub's lifecycle and logging behaviour.

Constructors

Link copied to clipboard
constructor(name: String? = null, eventuallyRemove: Boolean = false, verbose: Boolean = false)
constructor(removeAfterMatch: Boolean)

Secondary constructor for creating a StubConfiguration instance.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

When true, the stub becomes ineligible for matching immediately after its first match and is removed from the registry asynchronously. Subsequent requests will not match this stub even if the physical removal has not yet been applied. Defaults to false.

Link copied to clipboard
val name: String?

Optional human-readable name used in log and error output. Defaults to null.

Link copied to clipboard

Deprecated alias for eventuallyRemove, preserved for binary and source compatibility.

Link copied to clipboard

Enables per-stub DEBUG-level logging when true. Defaults to false.

Functions

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