Hi. I'm working with a team (and am myself) new to...
# getting-started
j
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.
s
If the code that is responsible for sending out requests is behind an interface, you can mock that with eg Mockito
a
@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.