When using the Mockk for Android Unit tests, there is any difference of using the notation when declaring dependencies?
class Test {
private val x: X = mockk()
private val test = TestClass(x)
...
}
or
class Test {
@MockK
private lateinit var x: X
@InjectMockKs
private lateinit var test: TestClass
@Before
fun setup() {
MockKAnnotations.init(this)
}
...
}