-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cannot Mock GcmNetworkManager on Android #1292
Labels
Comments
Thanks for the quick response! |
Just a suggestion — you’ll be better off providing some sort of abstraction on top of the |
Closing per #1078 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm trying to mock GcmNetworkManager, using the simple following code:
Mockito.mock(GcmNetworkManager::class.java)
(this is actually a kotlin code).I'm using Mockito version 2.10.0.
Any idea how to solve it?
EDIT:
Note that the real exception is:
Caused by: java.lang.IllegalStateException: final synchronized boolean com.google.android.gms.gcm.GcmNetworkManager.zzaa(java.lang.String,java.lang.String) is inconsistent for 'this' reference: 0
The text was updated successfully, but these errors were encountered: