-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
class MyTest : TestsWithMocks() {
override fun setUpMocks() = mocker.injectMocks(this)
@Mock lateinit var view: View
@Fake lateinit var model: Model
val controller by withMocks { Controller(view = view, firstModel = model) }
@Test fun controllerTest() {
every { view.render(isAny()) } returns true
controller.start()
verify { view.render(model) }
}
}
injectMocks method is not found in the Mock class. Where is it?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels