https://kotlinlang.org logo
s

stoyicker

03/14/2017, 11:45 AM
hi, I’m struggling to have a class with a delegated property using
lazy
in the tests, I need that property to be a mock but because it’s lazily initialized, the value is a
val
, which prevents me from reassigning it, so I can’t set it to be the mock any way to resolve this without some kind of dependency injection?