Hey,
As a Kotlin guy i have to say using the builder pattern to build stubs doesn't feel much kotlin-ish.
What do you think about adding a Kotlin DSL for the Kotliners?
writting stubs in kotlin could look something like this:
data class Song(val title: String)
stubFor {
get {
url equalTo "/my-api"
willReturn {
headers = mapOf("Content-Type" to "application/json")
body jsonFromObject Song("The revenge of Vera Gemini")
}
}
}
Since Kotlin is interoperable with java it would be no problem to add it to the project.
I could send a pull request.