What exactly is too hard? You can simply use `mock...
# tornadofx
s
What exactly is too hard? You can simply use
mockk()
as I've demonstrated in the snippet. I've just shown two different methods of creating an object that will be injected for tests. You don't need the
TestRestService
when you use
mockk()
. It's zero more classes.
👍 1