- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for MockWebServerInstance (0.1 sec)
-
mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerInstance.kt
* limitations under the License. */ package mockwebserver3.junit5.internal import okhttp3.ExperimentalOkHttpApi @ExperimentalOkHttpApi annotation class MockWebServerInstance( val name: String,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 764 bytes - Viewed (0) -
mockwebserver-junit5/src/test/java/mockwebserver3/junit5/internal/ExtensionMultipleInstancesTest.kt
var defaultInstancePort: Int = -1 var instanceAPort: Int = -1 var instanceBPort: Int = -1 @BeforeEach fun setup( defaultInstance: MockWebServer, @MockWebServerInstance("A") instanceA: MockWebServer, @MockWebServerInstance("B") instanceB: MockWebServer, ) { defaultInstancePort = defaultInstance.port instanceAPort = instanceA.port instanceBPort = instanceB.port
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 2.3K bytes - Viewed (0) -
mockwebserver-junit5/README.md
fun test() { ... } } ``` Multiple instances can be obtained by naming additional ones: ``` class MyTest( private val server: MockWebServer, @MockWebServerInstance("server2") private val server2: MockWebServer, @MockWebServerInstance("server3") private val server3: MockWebServer ) { @Test fun test() { ... } } ``` Requirements ------------
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 1.3K bytes - Viewed (0) -
mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerExtension.kt
* * 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. */ @ExperimentalOkHttpApi class MockWebServerExtension : BeforeEachCallback, AfterEachCallback, ParameterResolver, BeforeAllCallback, AfterAllCallback { private val ExtensionContext.resource: ServersForTest
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 11 12:12:36 UTC 2024 - 4.1K bytes - Viewed (0)