I’ve got a SUT that requires some dependencies pro...
# spek
r
I’ve got a SUT that requires some dependencies provided to it’s constructor, and I’d normally mock those and construct a new subject in
beforeEachTest
, but this means that I have to define them as
Item?
and use
!!
in all the tests since
lateinit
doesn’t work in this context. Is there a better way to do this in which multiple things can be created without the need to for
!!
?