We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nothing absolutely necessary, but having a DSL around the WireMockExtension.Builder would be nice.
WireMockExtension.Builder
fun wireMockExtension(block: WireMockExtension.Builder.() -> Unit): WireMockExtension = WireMockExtension.newInstance().apply(block).build()
Before:
companion object { @JvmField @RegisterExtension val wiremock: WireMockExtension = WireMockExtension.newInstance() .options(wireMockConfig().dynamicPort()) .failOnUnmatchedRequests(true) .build() }
After:
companion object { @JvmField @RegisterExtension val wiremock = wireMockExtension { options(wireMockConfig().dynamicPort()) failOnUnmatchedRequests(true) } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Nothing absolutely necessary, but having a DSL around the
WireMockExtension.Builder
would be nice.Before:
After:
The text was updated successfully, but these errors were encountered: