Home
last modified time | relevance | path

Searched refs:Robolectric (Results 1 – 25 of 261) sorted by relevance

1234567891011

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DApplicationTest.java17 import com.xtremelabs.robolectric.Robolectric;
29 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
45 Robolectric.application = new Application(); in setUp()
50 assertThat(new Activity().getApplication(), sameInstance(Robolectric.application)); in shouldBeAContext()
51 …ivity().getApplication().getApplicationContext(), sameInstance((Context) Robolectric.application)); in shouldBeAContext()
93 Object systemService = Robolectric.application.getSystemService(name); in checkSystemService()
95 assertThat(systemService, sameInstance(Robolectric.application.getSystemService(name))); in checkSystemService()
113 Robolectric.pauseMainLooper(); in bindServiceShouldCallOnServiceConnectedWhenNotPaused()
116Robolectric.shadowOf(Robolectric.application).setComponentNameAndServiceForBindService(expectedCom… in bindServiceShouldCallOnServiceConnectedWhenNotPaused()
119 …assertTrue(Robolectric.application.bindService(new Intent(""), service, Context.BIND_AUTO_CREATE)); in bindServiceShouldCallOnServiceConnectedWhenNotPaused()
[all …]
DDefaultRequestDirectorTest.java3 import com.xtremelabs.robolectric.Robolectric;
33 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
44 FakeHttpLayer fakeHttpLayer = Robolectric.getFakeHttpLayer(); in setUp_EnsureStaticStateIsReset()
60 Robolectric.addPendingHttpResponse(200, "a happy response body"); in tearDown_EnsureStaticStateIsReset()
65 Robolectric.addPendingHttpResponse(new TestHttpResponse(200, "a happy response body")); in shouldGetHttpResponseFromExecute()
75 Robolectric.addPendingHttpResponse(new TestHttpResponse(200, "a happy response body")); in shouldPreferPendingResponses()
77 Robolectric.addHttpResponseRule(HttpGet.METHOD_NAME, "http://some.uri", in shouldPreferPendingResponses()
89 Robolectric.addHttpResponseRule(HttpGet.METHOD_NAME, "http://some.uri", in shouldReturnRequestsByRule()
101 Robolectric.setDefaultHttpResponse(404, "no such page"); in shouldReturnRequestsByRule_MatchingMethod()
102 Robolectric.addHttpResponseRule(HttpPost.METHOD_NAME, "http://some.uri", in shouldReturnRequestsByRule_MatchingMethod()
[all …]
DArrayAdapterTest.java17 import com.xtremelabs.robolectric.Robolectric;
39 arrayAdapter = new ArrayAdapter<Integer>(Robolectric.application, 0, list); in setUp()
44 assertEquals(Robolectric.application, arrayAdapter.getContext()); in verifyContext()
57 ListView parent = new ListView(Robolectric.application); in usesTextViewResourceIdToSetTextWithinListItemView()
58 …ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(Robolectric.application, R.layout.mai… in usesTextViewResourceIdToSetTextWithinListItemView()
66 …ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(Robolectric.application, R.id.title, … in hasTheCorrectConstructorResourceIDs()
70 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter).getResourceId()==R.id.title); in hasTheCorrectConstructorResourceIDs()
71 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter).getTextViewResourceId()!=R.id.title); in hasTheCorrectConstructorResourceIDs()
72 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter).getTextViewResourceId()==0); in hasTheCorrectConstructorResourceIDs()
74 …ArrayAdapter<String> arrayAdapter2 = new ArrayAdapter<String>(Robolectric.application, R.id.title); in hasTheCorrectConstructorResourceIDs()
[all …]
DAsyncTaskTest.java11 import com.xtremelabs.robolectric.Robolectric;
26 Robolectric.getBackgroundScheduler().pause(); in setUp()
27 Robolectric.getUiThreadScheduler().pause(); in setUp()
37 Robolectric.runBackgroundTasks(); in testNormalFlow()
41 Robolectric.runUiThreadTasks(); in testNormalFlow()
55 Robolectric.runBackgroundTasks(); in testCancelBeforeBackground()
58 Robolectric.runUiThreadTasks(); in testCancelBeforeBackground()
69 Robolectric.runBackgroundTasks(); in testCancelBeforePostExecute()
76 Robolectric.runUiThreadTasks(); in testCancelBeforePostExecute()
94 Robolectric.runBackgroundTasks(); in progressUpdatesAreQueuedUntilBackgroundThreadFinishes()
[all …]
DPendingIntentTest.java3 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
18 import com.xtremelabs.robolectric.Robolectric;
38 …PendingIntent pendingIntent = PendingIntent.getBroadcast(Robolectric.application, 99, intent, 100); in getBroadcast__shouldCreateIntentForBroadcast()
44 assertThat(Robolectric.application, equalTo(shadow.getSavedContext())); in getBroadcast__shouldCreateIntentForBroadcast()
50 … PendingIntent pendingIntent = PendingIntent.getActivity(Robolectric.application, 99, intent, 100); in getActivity__shouldCreateIntentForBroadcast()
56 assertThat(Robolectric.application, equalTo(shadow.getSavedContext())); in getActivity__shouldCreateIntentForBroadcast()
62 … PendingIntent pendingIntent = PendingIntent.getService(Robolectric.application, 99, intent, 100); in getService__shouldCreateIntentForBroadcast()
68 assertThat(Robolectric.application, equalTo(shadow.getSavedContext())); in getService__shouldCreateIntentForBroadcast()
89 PendingIntent pi1 = PendingIntent.getActivity(Robolectric.application, 99, in testEquals()
92 PendingIntent pi3 = PendingIntent.getService(Robolectric.application, 99, in testEquals()
[all …]
DBitmapTest.java10 import com.xtremelabs.robolectric.Robolectric;
15 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
24 Bitmap originalBitmap = Robolectric.newInstanceOf(Bitmap.class); in shouldCreateScaledBitmap()
46 Bitmap originalBitmap = Robolectric.newInstanceOf(Bitmap.class); in shouldCreateBitmapFromAnotherBitmap()
82 Bitmap bitmap1 = Robolectric.newInstanceOf(Bitmap.class); in shouldReceiveDescriptionWhenDrawingToCanvas()
85 Bitmap bitmap2 = Robolectric.newInstanceOf(Bitmap.class); in shouldReceiveDescriptionWhenDrawingToCanvas()
96 Bitmap bitmap1 = Robolectric.newInstanceOf(Bitmap.class); in shouldReceiveDescriptionWhenDrawingToCanvasWithBitmapAndMatrixAndPaint()
99 Bitmap bitmap2 = Robolectric.newInstanceOf(Bitmap.class); in shouldReceiveDescriptionWhenDrawingToCanvasWithBitmapAndMatrixAndPaint()
110 Bitmap bitmap1 = Robolectric.newInstanceOf(Bitmap.class); in shouldReceiveDescriptionWhenDrawABitmapToCanvasWithAPaintEffect()
113 Bitmap bitmap2 = Robolectric.newInstanceOf(Bitmap.class); in shouldReceiveDescriptionWhenDrawABitmapToCanvasWithAPaintEffect()
[all …]
DShadowAutoCompleteTextViewTest.java7 import com.xtremelabs.robolectric.Robolectric;
24 new AutoCompleteTextView(Robolectric.application); in shouldStoreAdapter()
25 ArrayAdapter<Object> adapter = new ArrayAdapter<Object>(Robolectric.application, 0); in shouldStoreAdapter()
35 new AutoCompleteTextView(Robolectric.application); in shouldHaveDefaultThresholdOfTwo()
43 new AutoCompleteTextView(Robolectric.application); in shouldStoreThreshold()
53 new AutoCompleteTextView(Robolectric.application); in shouldNotStoreThresholdLessThanOne()
63 new AutoCompleteTextView(Robolectric.application); in shouldStoreOnItemClickListener()
75 new ReplaceableAutoCompleteTextView(Robolectric.application); in shouldReplaceTextAndUpdateSelection()
DVideoViewTest.java16 import com.xtremelabs.robolectric.Robolectric;
32 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldSetOnPreparedListener()
40 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldSetOnErrorListener()
48 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldSetOnCompletionListener()
55 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldSetVideoPath()
64 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldSetVideoURI()
82 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldStartPlaying()
89 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldStopPlayback()
97 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldSuspendPlaying()
107 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldResumePlaying()
[all …]
DHandlerTest.java6 import com.xtremelabs.robolectric.Robolectric;
14 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf;
15 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
75 Looper looper1 = Robolectric.newInstanceOf(Looper.class); in testDifferentLoopersGetDifferentQueues()
76 Robolectric.pauseLooper(looper1); in testDifferentLoopersGetDifferentQueues()
78 Looper looper2 = Robolectric.newInstanceOf(Looper.class); in testDifferentLoopersGetDifferentQueues()
79 Robolectric.pauseLooper(looper2); in testDifferentLoopersGetDifferentQueues()
225 Robolectric.pauseMainLooper(); in sendEmptyMessage_addMessageToQueue()
231 Robolectric.idleMainLooper(0); in sendEmptyMessage_addMessageToQueue()
237 Robolectric.pauseMainLooper(); in sendEmptyMessageDelayed_sendsMessageAtCorrectTime()
[all …]
DLocalBroadcastManagerTest.java8 import com.xtremelabs.robolectric.Robolectric;
21 LocalBroadcastManager instance = LocalBroadcastManager.getInstance(Robolectric.application); in shouldGetInstance()
23 assertSame(instance, LocalBroadcastManager.getInstance(Robolectric.application)); in shouldGetInstance()
28 LocalBroadcastManager instance = LocalBroadcastManager.getInstance(Robolectric.application); in shouldSendBroadcasts()
48 LocalBroadcastManager instance = LocalBroadcastManager.getInstance(Robolectric.application); in shouldUnregisterReceiver()
65 lastInstance = LocalBroadcastManager.getInstance(Robolectric.application); in shouldResetStateBetweenTests1()
72 assertNotSame(lastInstance, LocalBroadcastManager.getInstance(Robolectric.application)); in shouldResetStateBetweenTests2()
DBitmapFactoryTest.java8 import com.xtremelabs.robolectric.Robolectric;
15 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
22 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResource_shouldSetDescription()
31 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResourceWithOpts_shouldSetDescription()
49 …InputStream inputStream = Robolectric.application.getContentResolver().openInputStream(Uri.parse("… in decodeStream_shouldSetDescription()
60 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResource_shouldGetWidthAndHeightFromHints()
71 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResourceWithOpts_shouldGetWidthAndHeightFromHints()
83 …Bitmap bitmap = BitmapFactory.decodeResource(Robolectric.application.getResources(), R.drawable.an… in decodeResource_canTakeOptions()
111 …Bitmap bitmap = MediaStore.Images.Media.getBitmap(Robolectric.application.getContentResolver(), Ur… in decodeUri_shouldGetWidthAndHeightFromHints()
121 …InputStream inputStream = Robolectric.application.getContentResolver().openInputStream(Uri.parse("… in decodeStream_shouldGetWidthAndHeightFromHints()
DAlarmManagerTest.java9 import com.xtremelabs.robolectric.Robolectric;
33 shadowAlarmManager = Robolectric.shadowOf(alarmManager); in setUp()
112 … Intent newIntent = new Intent(Robolectric.application.getApplicationContext(), String.class); in cancel_removesMatchingPendingIntents()
113 …PendingIntent pendingIntent = PendingIntent.getBroadcast(Robolectric.application.getApplicationCon… in cancel_removesMatchingPendingIntents()
116 … Intent newIntent2 = new Intent(Robolectric.application.getApplicationContext(), Integer.class); in cancel_removesMatchingPendingIntents()
117 …PendingIntent pendingIntent2 = PendingIntent.getBroadcast(Robolectric.application.getApplicationCo… in cancel_removesMatchingPendingIntents()
122 … Intent newIntent3 = new Intent(Robolectric.application.getApplicationContext(), String.class); in cancel_removesMatchingPendingIntents()
123 …PendingIntent newPendingIntent = PendingIntent.getBroadcast(Robolectric.application.getApplication… in cancel_removesMatchingPendingIntents()
131 …PendingIntent pendingIntent = PendingIntent.getBroadcast(Robolectric.application.getApplicationCon… in cancel_removesMatchingPendingIntentsWithActions()
134 …alarmManager.cancel(PendingIntent.getBroadcast(Robolectric.application, 0, new Intent("anotherActi… in cancel_removesMatchingPendingIntentsWithActions()
[all …]
DPaintTest.java8 import com.xtremelabs.robolectric.Robolectric;
11 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
20 Paint paint = Robolectric.newInstanceOf(Paint.class); in shouldGetIsDitherInfo()
29 Paint paint = Robolectric.newInstanceOf(Paint.class); in shouldGetIsAntiAlias()
38 Paint paint = Robolectric.newInstanceOf(Paint.class); in testCtor()
DLayerDrawableTest.java7 import com.xtremelabs.robolectric.Robolectric;
13 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
37 Robolectric.application.getResources(), 0x00001000)); in setUp()
39 Robolectric.application.getResources(), 0x00002000)); in setUp()
41 Robolectric.application.getResources(), 0x00003000)); in setUp()
43 Robolectric.application.getResources(), 0x00004000)); in setUp()
DPathTest.java4 import com.xtremelabs.robolectric.Robolectric;
11 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
22 Path path = Robolectric.newInstanceOf(Path.class); in testGradTo()
30 Path path = Robolectric.newInstanceOf(Path.class); in testMoveTo()
42 Path path = Robolectric.newInstanceOf(Path.class); in testLineTo()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/
DRobolectricTest.java27 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
57 Robolectric.bindShadowClass(TestShadowView.class); in shouldLogMissingInvokedShadowMethodsWhenRequested()
58 Robolectric.logMissingInvokedShadowMethods(); in shouldLogMissingInvokedShadowMethodsWhenRequested()
87 Robolectric.clickOn(view); in clickOn_shouldThrowIfViewIsDisabled()
92 assertThat(Robolectric.getBackgroundScheduler().isPaused(), equalTo(false)); in shouldResetBackgroundSchedulerBeforeTests()
93 Robolectric.getBackgroundScheduler().pause(); in shouldResetBackgroundSchedulerBeforeTests()
98 assertThat(Robolectric.getBackgroundScheduler().isPaused(), equalTo(false)); in shouldResetBackgroundSchedulerAfterTests()
99 Robolectric.getBackgroundScheduler().pause(); in shouldResetBackgroundSchedulerAfterTests()
106 assertTrue(Robolectric.httpRequestWasMade()); in httpRequestWasSent_ReturnsTrueIfRequestWasSent()
111 assertFalse(Robolectric.httpRequestWasMade()); in httpRequestWasMade_ReturnsFalseIfNoRequestWasMade()
[all …]
DRobolectricTestRunnerTest.java3 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
24 assertNotNull(Robolectric.application); in shouldInitializeAndBindApplicationButNotCallOnCreate()
25 assertEquals(MyTestApplication.class, Robolectric.application.getClass()); in shouldInitializeAndBindApplicationButNotCallOnCreate()
26 assertFalse(((MyTestApplication) Robolectric.application).onCreateWasCalled); in shouldInitializeAndBindApplicationButNotCallOnCreate()
27 assertNotNull(shadowOf(Robolectric.application).getResourceLoader()); in shouldInitializeAndBindApplicationButNotCallOnCreate()
63 TextView tv = new TextView(Robolectric.application); in methodBlock_setsI18nStrictModeForClassHandler()
76 ResourceLoader loader = Robolectric.shadowOf(Robolectric.application).getResourceLoader(); in createResourceLoader_setsI18nStrictModeForResourceLoader()
80 loader.inflateView(Robolectric.application, R.layout.text_views, null); in createResourceLoader_setsI18nStrictModeForResourceLoader()
DTemporaryBindingsTest.java9 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
20 Robolectric.bindShadowClass(TemporaryShadowView.class); in overridingShadowBindingsShouldNotAffectBindingsInLaterTests()
22 assertThat(Robolectric.shadowOf_(new View(null)).getClass().getSimpleName(), in overridingShadowBindingsShouldNotAffectBindingsInLaterTests()
30 Robolectric.bindShadowClass(TemporaryShadowView.class); in overridingShadowBindingsShouldNotAffectBindingsInLaterTestsAgain()
32 assertThat(Robolectric.shadowOf_(new View(null)).getClass().getSimpleName(), in overridingShadowBindingsShouldNotAffectBindingsInLaterTestsAgain()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/bytecode/
DShadowWranglerTest.java3 import com.xtremelabs.robolectric.Robolectric;
35 Robolectric.bindShadowClass(ShadowFoo_WithDefaultConstructorAndNoConstructorDelegate.class); in testConstructorInvocation_WithDefaultConstructorAndNoConstructorDelegateOnShadowClass()
38 …assertEquals(ShadowFoo_WithDefaultConstructorAndNoConstructorDelegate.class, Robolectric.shadowOf_… in testConstructorInvocation_WithDefaultConstructorAndNoConstructorDelegateOnShadowClass()
43 Robolectric.bindShadowClass(ShadowFoo.class); in testConstructorInvocation()
52 Robolectric.bindShadowClass(ShadowFoo.class); in testRealObjectAnnotatedFieldsAreSetBeforeConstructorIsCalled()
64 Robolectric.bindShadowClass(ShadowFoo.class); in testMethodDelegation()
72 Robolectric.bindShadowClass(WithEquals.class); in testEqualsMethodDelegation()
81 Robolectric.bindShadowClass(WithEquals.class); in testHashCodeMethodDelegation()
89 Robolectric.bindShadowClass(WithToString.class); in testToStringMethodDelegation()
97 Robolectric.bindShadowClass(ShadowFoo.class); in testShadowSelectionSearchesSuperclasses()
[all …]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
DResourceLoaderTest.java8 import com.xtremelabs.robolectric.Robolectric;
48 ViewGroup vg = new FrameLayout(Robolectric.application); in shouldThrowExceptionOnI18nStrictModeInflateView()
49 resourceLoader.inflateView(Robolectric.application, R.layout.text_views, vg); in shouldThrowExceptionOnI18nStrictModeInflateView()
56 resourceLoader.inflateMenu(Robolectric.application, R.menu.test, null); in shouldThrowExceptionOnI18nStrictModeInflateMenu()
63 resourceLoader.inflatePreferences(Robolectric.application, R.xml.preferences); in shouldThrowExceptionOnI18nStrictModeInflatePreferences()
70 ViewGroup viewGroup = new FrameLayout(Robolectric.application); in testChoosesLayoutBasedOnSearchPath_respectsOrderOfPath()
71 …ViewGroup view = (ViewGroup) resourceLoader.inflateView(Robolectric.application, R.layout.differen… in testChoosesLayoutBasedOnSearchPath_respectsOrderOfPath()
87 ResourceLoader resourceLoader = Robolectric.getShadowApplication().getResourceLoader(); in checkForPollutionHelper()
88 ViewGroup viewGroup = new FrameLayout(Robolectric.application); in checkForPollutionHelper()
89 …ViewGroup view = (ViewGroup) resourceLoader.inflateView(Robolectric.application, R.layout.differen… in checkForPollutionHelper()
[all …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowPatterns.java9 import com.xtremelabs.robolectric.Robolectric;
127 Robolectric.Reflection.setFinalStaticField(Patterns.class, "DOMAIN_NAME", DOMAIN_NAME); in reset()
128 Robolectric.Reflection.setFinalStaticField(Patterns.class, "EMAIL_ADDRESS", EMAIL_ADDRESS); in reset()
129 Robolectric.Reflection.setFinalStaticField(Patterns.class, "IP_ADDRESS", IP_ADDRESS); in reset()
130 Robolectric.Reflection.setFinalStaticField(Patterns.class, "PHONE", PHONE); in reset()
131 Robolectric.Reflection.setFinalStaticField(Patterns.class, "TOP_LEVEL_DOMAIN", in reset()
133 Robolectric.Reflection.setFinalStaticField(Patterns.class, "WEB_URL", WEB_URL); in reset()
DShadowToast.java7 import com.xtremelabs.robolectric.Robolectric;
14 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
44 Robolectric.getShadowApplication().getShownToasts().add(toast); in show()
81 Robolectric.getShadowApplication().getShownToasts().clear(); in reset()
92 return Robolectric.getShadowApplication().getShownToasts().size(); in shownToastCount()
104 for (Toast toast : Robolectric.getShadowApplication().getShownToasts()) { in showedCustomToast()
120 for (Toast toast : Robolectric.getShadowApplication().getShownToasts()) { in showedToast()
135 List<Toast> shownToasts = Robolectric.getShadowApplication().getShownToasts(); in getTextOfLatestToast()
145 List<Toast> shownToasts = Robolectric.getShadowApplication().getShownToasts(); in getLatestToast()
DShadowContentProviderOperation.java10 import com.xtremelabs.robolectric.Robolectric;
26 Builder builder = Robolectric.newInstanceOf(Builder.class); in newInsert()
27 ShadowContentProviderOperationBuilder shadowBuilder = Robolectric.shadowOf(builder); in newInsert()
35 Builder builder = Robolectric.newInstanceOf(Builder.class); in newUpdate()
36 ShadowContentProviderOperationBuilder shadowBuilder = Robolectric.shadowOf(builder); in newUpdate()
44 Builder builder = Robolectric.newInstanceOf(Builder.class); in newDelete()
45 ShadowContentProviderOperationBuilder shadowBuilder = Robolectric.shadowOf(builder); in newDelete()
DShadowMediaStore.java7 import com.xtremelabs.robolectric.Robolectric;
27Robolectric.Reflection.setFinalStaticField(MediaStore.Images.Media.class, "EXTERNAL_CONTENT_URI", in reset()
30Robolectric.Reflection.setFinalStaticField(MediaStore.Images.Media.class, "INTERNAL_CONTENT_URI", in reset()
33Robolectric.Reflection.setFinalStaticField(MediaStore.Video.Media.class, "EXTERNAL_CONTENT_URI", in reset()
36Robolectric.Reflection.setFinalStaticField(MediaStore.Video.Media.class, "INTERNAL_CONTENT_URI", in reset()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/
DRobolectricBackgroundExecutorServiceTest.java3 import com.xtremelabs.robolectric.Robolectric;
26 Robolectric.getBackgroundScheduler().pause(); in setUp()
41 Robolectric.runBackgroundTasks(); in execute_shouldRunStuffOnBackgroundThread()
52 Robolectric.runBackgroundTasks(); in submitRunnable_shouldRunStuffOnBackgroundThread()
71 Robolectric.runBackgroundTasks(); in submitCallable_shouldRunStuffOnBackgroundThread()

1234567891011