Closed snazhmudinov closed 5 years ago
I'm trying a very simple test case, and getting the error.
My gradle dependecy includes: androidTestImplementation 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0'
androidTestImplementation 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0'
This is my test class:
`@RunWith(AndroidJUnit4::class) class ExampleInstrumentedTest {
lateinit var viewModel: ViewModel lateinit var repository: Repository @Before fun setup() { repository = mock() viewModel = ViewModel(repository) } @Test fun sampleTest() { assert(true) }
}`
I also have MockMaker file configured and placed in src/androidTest/resources/mockito-extension/org.mockito.plugins.MockMaker
src/androidTest/resources/mockito-extension/org.mockito.plugins.MockMaker
This is something core related. Could you file it with the Mockito core project?
I'm trying a very simple test case, and getting the error.
My gradle dependecy includes:
androidTestImplementation 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0'
This is my test class:
`@RunWith(AndroidJUnit4::class) class ExampleInstrumentedTest {
}`