Class RobolectricThreadChecker

java.lang.Object
org.robolectric.android.internal.RobolectricThreadChecker
All Implemented Interfaces:
androidx.test.internal.platform.ThreadChecker

public class RobolectricThreadChecker extends Object implements androidx.test.internal.platform.ThreadChecker
Performs thread checking when in INSTRUMENTAION_TEST Looper Mode where the test thread is distinct from the main thread. No-op for other modes because everything is executed on the main thread (except for manually created worker threads).
  • Constructor Details

    • RobolectricThreadChecker

      public RobolectricThreadChecker()
  • Method Details

    • checkMainThread

      public void checkMainThread()
      Specified by:
      checkMainThread in interface androidx.test.internal.platform.ThreadChecker
    • checkNotMainThread

      public void checkNotMainThread()
      Specified by:
      checkNotMainThread in interface androidx.test.internal.platform.ThreadChecker