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 void
checkMainThread()
void
checkNotMainThread()
-
Constructor Details
-
NoOpThreadChecker
public NoOpThreadChecker()
-
-
Method Details
-
checkMainThread
public void checkMainThread()- Specified by:
checkMainThread
in interfaceandroidx.test.internal.platform.ThreadChecker
-
checkNotMainThread
public void checkNotMainThread()- Specified by:
checkNotMainThread
in interfaceandroidx.test.internal.platform.ThreadChecker
-