1 min readMay 29, 2018
One thing which i came across is, there need to be added:
“@Rule
@JvmField
val instantExecutorRule = InstantTaskExecutorRule()”
to test. Without that it crashes with:
“RuntimeException: Method getMainLooper in android.os.Looper not mocked.”