Class 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 Detail

      • NoOpThreadChecker

        public NoOpThreadChecker()
    • Method Detail

      • 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