Open adin234 opened 6 years ago
io.mvpstarter.sample.DetailActivityTest > checkErrorViewDisplays[Nexus_5_API_18(AVD) - 4.3.1] FAILED org.mockito.exceptions.base.MockitoException: Cannot mock/spy class io.mvpstarter.sample.data.DataManager io.mvpstarter.sample.DetailActivityTest > checkPokemonDisplays[Nexus_5_API_18(AVD) - 4.3.1] FAILED org.mockito.exceptions.base.MockitoException: Cannot mock/spy class io.mvpstarter.sample.data.DataManager io.mvpstarter.sample.MainActivityTest > checkErrorViewDisplays[Nexus_5_API_18(AVD) - 4.3.1] FAILED org.mockito.exceptions.base.MockitoException: Cannot mock/spy class io.mvpstarter.sample.data.DataManager io.mvpstarter.sample.MainActivityTest > clickingPokemonLaunchesDetailActivity[Nexus_5_API_18(AVD) - 4.3.1] FAILED org.mockito.exceptions.base.MockitoException: Cannot mock/spy class io.mvpstarter.sample.data.DataManager io.mvpstarter.sample.MainActivityTest > checkPokemonsDisplay[Nexus_5_API_18(AVD) - 4.3.1] FAILED org.mockito.exceptions.base.MockitoException: Cannot mock/spy class io.mvpstarter.sample.data.DataManager FAILURE: Build failed with an exception.
converting DataManager.kt to an open class gives
DataManager.kt
> Task :app:connectedDebugAndroidTest Starting 5 tests on Nexus_5_API_18(AVD) - 4.3.1 io.mvpstarter.sample.DetailActivityTest > checkErrorViewDisplays[Nexus_5_API_18(AVD) - 4.3.1] FAILED java.lang.NullPointerException at io.mvpstarter.sample.data.DataManager.getPokemon(DataManager.kt:22) io.mvpstarter.sample.DetailActivityTest > checkPokemonDisplays[Nexus_5_API_18(AVD) - 4.3.1] FAILED org.mockito.exceptions.misusing.InvalidUseOfMatchersException: Misplaced or misused argument matcher detected here: io.mvpstarter.sample.MainActivityTest > checkErrorViewDisplays[Nexus_5_API_18(AVD) - 4.3.1] FAILED java.lang.NullPointerException at io.mvpstarter.sample.data.DataManager.getPokemonList(DataManager.kt:14) io.mvpstarter.sample.MainActivityTest > clickingPokemonLaunchesDetailActivity[Nexus_5_API_18(AVD) - 4.3.1] FAILED org.mockito.exceptions.misusing.InvalidUseOfMatchersException: Misplaced or misused argument matcher detected here: io.mvpstarter.sample.MainActivityTest > checkPokemonsDisplay[Nexus_5_API_18(AVD) - 4.3.1] FAILED java.lang.NullPointerException at io.mvpstarter.sample.data.DataManager.getPokemonList(DataManager.kt:14) FAILURE: Build failed with an exception.
converting
DataManager.kt
to an open class gives