StubConfiguration

data class StubConfiguration @JvmOverloads constructor(val name: String? = null, val removeAfterMatch: 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, removeAfterMatch: Boolean = false, verbose: Boolean = false)

Properties

Link copied to clipboard
val name: String?

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

Link copied to clipboard

When true, the stub is removed from the registry after its first match. Defaults to false.

Link copied to clipboard

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