Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connectedAndroidTest not working #29

Open
adin234 opened this issue Mar 21, 2018 · 0 comments
Open

connectedAndroidTest not working #29

adin234 opened this issue Mar 21, 2018 · 0 comments

Comments

@adin234
Copy link

adin234 commented Mar 21, 2018

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

> 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant