I'm also having issues on the compose when I need to access the Runtime through withRuntime. As in this example. The methods called on rts here are outdated. But I my troubles are going beyond that.
I do not have the knowledge to handle this second case on my own.
I've managed to get my mocks running without using withRuntime, just throwing Runtime.default into a val.
It's unclear to me this is the correct approach.
The documentation on the compose layer for
mocking collaborators
uses deprecated syntax to buildZLayer
.The correct syntax can be found here.
I can take care of fixing this bit.
I'm also having issues on the
compose
when I need to access theRuntime
throughwithRuntime
. As in this example. The methods called onrts
here are outdated. But I my troubles are going beyond that.I do not have the knowledge to handle this second case on my own. I've managed to get my mocks running without using
withRuntime
, just throwingRuntime.default
into a val. It's unclear to me this is the correct approach.