WebserviceMockRule

class WebserviceMockRule(configProvider: WebserviceConfigProvider) : ResourceRule

Starts a WebserviceMockServer before starting a test when the config provided by the configProvider is not empty.

Parameters

configProvider

Called to provide the config.

Constructors

Link copied to clipboard
fun WebserviceMockRule(configProvider: WebserviceConfigProvider)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun apply(baseStatement: Statement, description: Description): Statement
Link copied to clipboard
fun captureYield(description: String, durationMs: Long)

Yields the test execution when capturing all web service requests or when not all web service requests have been replayed since the last execution of this call or since the start of the test.