How can I inject (in the Koin) mocked objects in a...
# getting-started
ł
How can I inject (in the Koin) mocked objects in a Ktor app in tests?
d
Don't use mocked objects, use fake objects
ł
What? O.o how do you want to use a fake repository? Give me an example
n
What he means is create a class that extends/inherits the object you are injecting and override everything to be no-op
ł
Ok, but it isn’t the solution. The problem is injecting new object in place old.
d
I don't any problem here)
Just create many interfaces and inherit them. That's ok!