cjstehno / ersatz

🤖 A simulated HTTP server for testing client code with configurable responses.
https://cjstehno.github.io/ersatz
Apache License 2.0
47 stars 5 forks source link

Explore using in Kotlin #51

Closed cjstehno closed 7 years ago

cjstehno commented 7 years ago

Explore how Ersatz may be used from Kotlin.

musketyr commented 7 years ago

Kotlin seems to be very friendly to closure + delegate DSLs. I think only thing we need to figure out is how to set recipient from plain java in similar way how I'm doing this for Groovy: https://github.com/jasanspace/groovy-closure-support

cjstehno commented 7 years ago

As a starting point I have added a kotlin usage test and documented it in the user guide. It works in the basic sense - I can start adding helpful tweaks as needed (and probably as I get more into Kotlin :-))