Trendyol/stove

Improve WithDsl

osoykan opened this issue · 0 comments

Options can be defined better for example:

From:

 wiremock {
        WireMockSystemOptions(
            port = 9090,
            removeStubAfterRequestMatched = true,
            afterRequest = { e, _, _ ->
                logger.info(e.request.toString())
            },
        )
    }

To:

 wiremock {
         port = 9090,
         removeStubAfterRequestMatched = true,
         afterRequest = { e, _, _ ->  logger.info(e.request.toString()) }
 }