Package org.robolectric.android.internal
Class NoOpThreadChecker
java.lang.Object
org.robolectric.android.internal.NoOpThreadChecker
- All Implemented Interfaces:
androidx.test.internal.platform.ThreadChecker
public class NoOpThreadChecker extends Object implements androidx.test.internal.platform.ThreadChecker
In Robolectric environment, everything is executed on the main thread except for when you
manually create and run your code on worker thread.
-
Constructor Summary
Constructors Constructor Description NoOpThreadChecker() -
Method Summary
Modifier and Type Method Description voidcheckMainThread()voidcheckNotMainThread()
-
Constructor Details
-
NoOpThreadChecker
public NoOpThreadChecker()
-
-
Method Details
-
checkMainThread
public void checkMainThread()- Specified by:
checkMainThreadin interfaceandroidx.test.internal.platform.ThreadChecker
-
checkNotMainThread
public void checkNotMainThread()- Specified by:
checkNotMainThreadin interfaceandroidx.test.internal.platform.ThreadChecker
-