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()).isSameInstanceAs(Robolectric.getBackg… in getThreadScheduler_shouldMatchRobolectricValue()580 …assertThat(shadowApplication.getBackgroundThreadScheduler()).isNotSameInstanceAs(RuntimeEnvironmen… in getBackgroundThreadScheduler_shouldDifferFromRuntimeEnvironment_byDefault()588 assertThat(shadowApplication.getBackgroundThreadScheduler()).isNotSameInstanceAs(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()
43 ShadowApplication.getInstance().getBackgroundThreadScheduler().post(future); in onForceLoad()
67 getInstance().getBackgroundThreadScheduler().advanceBy(0); in runBackgroundTasks()99 public Scheduler getBackgroundThreadScheduler() { in getBackgroundThreadScheduler() method in ShadowApplication
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()
22 private final Scheduler backgroundScheduler = Robolectric.getBackgroundThreadScheduler();
48 this.scheduler = ShadowApplication.getInstance().getBackgroundThreadScheduler(); in RoboExecutorService()