I start/initialize repos/services outside and then...
# http4k
p
I start/initialize repos/services outside and then pass them in. To test just the server handlers, I mock the services/repos, which are unit tested separately. To test the whole integrated thing, I use rest assured.