MockWebServerExtension
Runs MockWebServer for the duration of a single test method.
Specifically while junit instances passes into test constructor are typically shares amongst all tests, a fresh instance will be received here. Use with @BeforeAll and @AfterAll, is not supported.
There are 3 ids for instances
The test instance default (passed into constructor)
The test lifecycle default (passed into test method, plus @BeforeEach, @AfterEach)
named instances with @MockWebServerInstance.
Functions
Link copied to clipboard
Start the servers passed in as test method parameters.
Link copied to clipboard
open override fun resolveParameter(parameterContext: ParameterContext, extensionContext: ExtensionContext): Any
Link copied to clipboard
@IgnoreJRERequirement