Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit 1c5133d

Browse files
committed
Added vararg mappings method
1 parent dafa01c commit 1c5133d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/kotlin/io/kotest/extensions/httpstub/HttpStubServer.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,9 @@ data class HttpStubServer(val server: WireMockServer) {
5959
fun mappings(configure: HttpStubber.() -> Unit) {
6060
HttpStubber(server).configure()
6161
}
62+
63+
fun mappings(vararg configures: HttpStubber.() -> Unit) {
64+
val stubber = HttpStubber(server)
65+
configures.forEach { it.invoke(stubber) }
66+
}
6267
}

0 commit comments

Comments
 (0)