ritesh
09/20/2019, 11:57 AMretrofit
when i do checkModules
it throws up Method getMainLooper in android.os.Looper not mocked.
As my retrofit builder by default created with .io scheduler
, i tried adding trampoline, or removing it. Or custom rules for it to do it on the current thread. But no luck.
Wondering, if any one else had faced the same.oleg_osipenko
09/20/2019, 12:33 PMandroid {
testOptions {
unitTests.returnDefaultValues = true
}
}
?ritesh
09/20/2019, 4:51 PMritesh
09/20/2019, 7:28 PMMainThreadExecutor
. I provided currentThreadExecutor
and it worked.