Hi. I'm working with a team (and am myself) new to the JVM, Kotlin, and Rat Pack. I'm looking for any tutorials on how one goes about mocking outgoing http calls in tests.
05/16/2018, 6:11 AM
If the code that is responsible for sending out requests is behind an interface, you can mock that with eg Mockito
05/16/2018, 8:33 AM
@jlepper If you are looking to spin up a mock of a remote REST Server then you could have a look at WireMock - http://wiremock.org/
I have used that in the past to enable the simulation of edge cases & unexpected errors as well as the happy-path.