At build time, I'm getting a compiler complaint as seen in subject line.
PowerMockito.doReturn(someObjectToReturn).when(someCondition) //complains about the return type on the doReturn.
I think this is build.gradle hell.
Below is how I'm including PowerMock on an android project. Using compile (not androidTestCompile) intentionally as the app is a shell that integrates a library (the library is what we write and are testing). We have some mocks set up in the main app to override getSystemService so we can influence ConnectivityManager.
I thought, "Geesh this is easy". Get rid of "exclude group: 'junit' exclude group: 'org.mockito'" and that class will be found. But when I remove that exclude line, I have another error,
At build time, I'm getting a compiler complaint as seen in subject line. PowerMockito.doReturn(someObjectToReturn).when(someCondition) //complains about the return type on the doReturn.
I think this is build.gradle hell.
Below is how I'm including PowerMock on an android project. Using compile (not androidTestCompile) intentionally as the app is a shell that integrates a library (the library is what we write and are testing). We have some mocks set up in the main app to override getSystemService so we can influence ConnectivityManager.
I thought, "Geesh this is easy". Get rid of "exclude group: 'junit' exclude group: 'org.mockito'" and that class will be found. But when I remove that exclude line, I have another error,
Open for some suggestions here.