Not sure this is the best channel but perhaps some...
# mockk
d
Not sure this is the best channel but perhaps someone will be able to answer. How is the
@MockkBean
supposed to influence the Spring context cache? In my experience, there's a difference between
Copy code
@MockkBean(SomeDependency::class)
class TestClass
and
Copy code
class TestClass @Autowired constructor(@MockkBean val dep: SomeDependency)
in that each setup leads to a different Spring context. Is this expected?