NetworkRule

class NetworkRule : TestRule

Constructors

Link copied to clipboard
constructor(hostsToTrack: List<String> = listOf(ApiRequest.API_HOST), validationTimeout: Duration? = null)

Properties

Link copied to clipboard
val baseUrl: HttpUrl

Functions

Link copied to clipboard
open override fun apply(base: Statement, description: Description): Statement
Link copied to clipboard
Link copied to clipboard
fun enqueue(vararg requestMatcher: RequestMatcher, responseFactory: (MockResponse) -> Unit)
fun enqueue(vararg requestMatcher: RequestMatcher, responseFactory: (TestRecordedRequest, MockResponse) -> Unit)
Link copied to clipboard
fun validate()