Searched refs:getBackgroundThreadScheduler (Results 1 – 13 of 13) sorted by relevance
71 assertThat(Robolectric.getBackgroundThreadScheduler().isPaused()).isFalse(); in shouldResetBackgroundSchedulerBeforeTests()72 Robolectric.getBackgroundThreadScheduler().pause(); in shouldResetBackgroundSchedulerBeforeTests()77 assertThat(Robolectric.getBackgroundThreadScheduler().isPaused()).isFalse(); in shouldResetBackgroundSchedulerAfterTests()78 Robolectric.getBackgroundThreadScheduler().pause(); in shouldResetBackgroundSchedulerAfterTests()
28 Robolectric.getBackgroundThreadScheduler().pause(); in setUp()118 Robolectric.getBackgroundThreadScheduler().unPause(); in executeReturnsAsyncTask()129 Robolectric.getBackgroundThreadScheduler().unPause(); in shouldGetStatusForAsyncTask()135 Robolectric.getBackgroundThreadScheduler().unPause(); in onPostExecute_doesNotSwallowExceptions()
22 Robolectric.getBackgroundThreadScheduler().pause(); in setUp()
564 …assertThat(shadowApplication.getBackgroundThreadScheduler()).isSameAs(Robolectric.getBackgroundThr… in getThreadScheduler_shouldMatchRobolectricValue()580 …assertThat(shadowApplication.getBackgroundThreadScheduler()).isNotSameAs(RuntimeEnvironment.getMas… in getBackgroundThreadScheduler_shouldDifferFromRuntimeEnvironment_byDefault()588 assertThat(shadowApplication.getBackgroundThreadScheduler()).isNotSameAs(s); in getBackgroundThreadScheduler_shouldDifferFromRuntimeEnvironment_withAdvancedScheduling()
203 public static Scheduler getBackgroundThreadScheduler() { in getBackgroundThreadScheduler() method in Robolectric204 return ShadowApplication.getInstance().getBackgroundThreadScheduler(); in getBackgroundThreadScheduler()211 getBackgroundThreadScheduler().advanceToLastPostedRunnable(); in flushBackgroundThreadScheduler()
67 getInstance().getBackgroundThreadScheduler().advanceBy(0); in runBackgroundTasks()99 public Scheduler getBackgroundThreadScheduler() { in getBackgroundThreadScheduler() method in ShadowApplication
43 ShadowApplication.getInstance().getBackgroundThreadScheduler().post(future); in onForceLoad()
90 ShadowApplication.getInstance().getBackgroundThreadScheduler().post(new Runnable() { in execute()
41 Robolectric.getBackgroundThreadScheduler().post(future); in onForceLoad()
69 assertThat(shadowApplication.getBackgroundThreadScheduler()) in setUpApplicationState_setsBackgroundScheduler_toBeSameAsForeground_whenAdvancedScheduling()83 assertThat(shadowApplication.getBackgroundThreadScheduler()) in setUpApplicationState_setsBackgroundScheduler_toBeDifferentToForeground_byDefault()
48 this.scheduler = ShadowApplication.getInstance().getBackgroundThreadScheduler(); in RoboExecutorService()
22 private final Scheduler backgroundScheduler = Robolectric.getBackgroundThreadScheduler();