HomeSort by relevance Sort by last modified time
    Searched refs:Robolectric (Results 1 - 25 of 260) sorted by null

1 2 3 4 5 6 7 8 91011

  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowLocalBroadcastManager.java 1 package com.xtremelabs.robolectric.shadows;
4 import com.xtremelabs.robolectric.Robolectric;
12 Robolectric.Reflection.setFinalStaticField(LocalBroadcastManager.class, "mInstance", null);
ShadowContentProvider.java 1 package com.xtremelabs.robolectric.shadows;
6 import com.xtremelabs.robolectric.Robolectric;
7 import com.xtremelabs.robolectric.internal.Implementation;
8 import com.xtremelabs.robolectric.internal.Implements;
15 return Robolectric.application;
ShadowJsPromptResult.java 1 package com.xtremelabs.robolectric.shadows;
4 import com.xtremelabs.robolectric.Robolectric;
5 import com.xtremelabs.robolectric.internal.Implements;
11 return Robolectric.newInstanceOf(JsPromptResult.class);
ShadowPatterns.java 1 package com.xtremelabs.robolectric.shadows;
9 import com.xtremelabs.robolectric.Robolectric;
10 import com.xtremelabs.robolectric.internal.Implements;
127 Robolectric.Reflection.setFinalStaticField(Patterns.class, "DOMAIN_NAME", DOMAIN_NAME);
128 Robolectric.Reflection.setFinalStaticField(Patterns.class, "EMAIL_ADDRESS", EMAIL_ADDRESS);
129 Robolectric.Reflection.setFinalStaticField(Patterns.class, "IP_ADDRESS", IP_ADDRESS);
130 Robolectric.Reflection.setFinalStaticField(Patterns.class, "PHONE", PHONE);
131 Robolectric.Reflection.setFinalStaticField(Patterns.class, "TOP_LEVEL_DOMAIN",
133 Robolectric.Reflection.setFinalStaticField(Patterns.class, "WEB_URL", WEB_URL)
    [all...]
ShadowToast.java 1 package com.xtremelabs.robolectric.shadows;
7 import com.xtremelabs.robolectric.Robolectric;
8 import com.xtremelabs.robolectric.internal.Implementation;
9 import com.xtremelabs.robolectric.internal.Implements;
10 import com.xtremelabs.robolectric.internal.RealObject;
14 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
44 Robolectric.getShadowApplication().getShownToasts().add(toast);
81 Robolectric.getShadowApplication().getShownToasts().clear()
    [all...]
ShadowMediaStore.java 1 package com.xtremelabs.robolectric.shadows;
7 import com.xtremelabs.robolectric.Robolectric;
8 import com.xtremelabs.robolectric.internal.Implementation;
9 import com.xtremelabs.robolectric.internal.Implements;
27 Robolectric.Reflection.setFinalStaticField(MediaStore.Images.Media.class, "EXTERNAL_CONTENT_URI",
30 Robolectric.Reflection.setFinalStaticField(MediaStore.Images.Media.class, "INTERNAL_CONTENT_URI",
33 Robolectric.Reflection.setFinalStaticField(MediaStore.Video.Media.class, "EXTERNAL_CONTENT_URI",
36 Robolectric.Reflection.setFinalStaticField(MediaStore.Video.Media.class, "INTERNAL_CONTENT_URI",
ShadowBluetoothAdapter.java 1 package com.xtremelabs.robolectric.shadows;
5 import com.xtremelabs.robolectric.Robolectric;
6 import com.xtremelabs.robolectric.internal.Implementation;
7 import com.xtremelabs.robolectric.internal.Implements;
13 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
24 return (BluetoothAdapter) shadowOf(Robolectric.application).getBluetoothAdapter();
ShadowAnimationUtils.java 1 package com.xtremelabs.robolectric.shadows;
8 import com.xtremelabs.robolectric.Robolectric;
9 import com.xtremelabs.robolectric.internal.Implementation;
10 import com.xtremelabs.robolectric.internal.Implements;
19 Robolectric.shadowOf(anim).setLoadedFromResourceId(id);
ShadowCookieSyncManager.java 1 package com.xtremelabs.robolectric.shadows;
6 import com.xtremelabs.robolectric.Robolectric;
7 import com.xtremelabs.robolectric.internal.Implementation;
8 import com.xtremelabs.robolectric.internal.Implements;
23 sRef = Robolectric.newInstanceOf(CookieSyncManager.class);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/
RobolectricShadowOfLevel9.java 1 package com.xtremelabs.robolectric;
6 import com.xtremelabs.robolectric.shadows.ShadowNdefMessage;
7 import com.xtremelabs.robolectric.shadows.ShadowNdefRecord;
8 import com.xtremelabs.robolectric.shadows.ShadowNfcAdapter;
14 return (ShadowNdefMessage) Robolectric.shadowOf_(instance);
18 return (ShadowNdefRecord) Robolectric.shadowOf_(instance);
22 return (ShadowNfcAdapter) Robolectric.shadowOf_(instance);
RobolectricForMaps.java 1 package com.xtremelabs.robolectric;
7 import com.xtremelabs.robolectric.shadows.ShadowGeoPoint;
8 import com.xtremelabs.robolectric.shadows.ShadowItemizedOverlay;
9 import com.xtremelabs.robolectric.shadows.ShadowMapController;
10 import com.xtremelabs.robolectric.shadows.ShadowMapView;
14 return (ShadowGeoPoint) Robolectric.shadowOf_(instance);
18 return (ShadowMapView) Robolectric.shadowOf_(instance);
22 return (ShadowMapController) Robolectric.shadowOf_(instance);
26 return (ShadowItemizedOverlay) Robolectric.shadowOf_(instance);
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
JsResultTest.java 1 package com.xtremelabs.robolectric.shadows;
4 import com.xtremelabs.robolectric.Robolectric;
5 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
9 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
18 JsResult jsResult = Robolectric.newInstanceOf(JsResult.class);
LayoutInflaterTest.java 1 package com.xtremelabs.robolectric.shadows;
5 import com.xtremelabs.robolectric.Robolectric;
6 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
20 layoutInflater = LayoutInflater.from(Robolectric.application);
26 assertSame(LayoutInflater.from(Robolectric.application), layoutInflater);
27 assertSame(LayoutInflater.from(new ContextWrapper(Robolectric.application)), layoutInflater);
ShadowAutoCompleteTextViewTest.java 1 package com.xtremelabs.robolectric.shadows;
7 import com.xtremelabs.robolectric.Robolectric;
8 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
24 new AutoCompleteTextView(Robolectric.application);
25 ArrayAdapter<Object> adapter = new ArrayAdapter<Object>(Robolectric.application, 0);
35 new AutoCompleteTextView(Robolectric.application);
43 new AutoCompleteTextView(Robolectric.application);
53 new AutoCompleteTextView(Robolectric.application);
63 new AutoCompleteTextView(Robolectric.application)
    [all...]
DefaultRequestDirectorTest.java 1 package com.xtremelabs.robolectric.shadows;
3 import com.xtremelabs.robolectric.Robolectric;
4 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
5 import com.xtremelabs.robolectric.tester.org.apache.http.FakeHttpLayer;
6 import com.xtremelabs.robolectric.tester.org.apache.http.RequestMatcher;
7 import com.xtremelabs.robolectric.tester.org.apache.http.TestHttpResponse;
8 import com.xtremelabs.robolectric.util.Strings;
33 import static com.xtremelabs.robolectric.Robolectric.shadowOf
    [all...]
ApplicationTest.java 1 package com.xtremelabs.robolectric.shadows;
15 import com.xtremelabs.robolectric.ApplicationResolver;
16 import com.xtremelabs.robolectric.R;
17 import com.xtremelabs.robolectric.Robolectric;
18 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
19 import com.xtremelabs.robolectric.res.ResourceLoader;
20 import com.xtremelabs.robolectric.res.StringResourceLoader;
21 import com.xtremelabs.robolectric.util.TestBroadcastReceiver;
29 import static com.xtremelabs.robolectric.Robolectric.shadowOf
    [all...]
LocalBroadcastManagerTest.java 1 package com.xtremelabs.robolectric.shadows;
8 import com.xtremelabs.robolectric.Robolectric;
9 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
21 LocalBroadcastManager instance = LocalBroadcastManager.getInstance(Robolectric.application);
23 assertSame(instance, LocalBroadcastManager.getInstance(Robolectric.application));
28 LocalBroadcastManager instance = LocalBroadcastManager.getInstance(Robolectric.application);
48 LocalBroadcastManager instance = LocalBroadcastManager.getInstance(Robolectric.application);
65 lastInstance = LocalBroadcastManager.getInstance(Robolectric.application);
72 assertNotSame(lastInstance, LocalBroadcastManager.getInstance(Robolectric.application))
    [all...]
AsyncTaskTest.java 1 package com.xtremelabs.robolectric.shadows;
11 import com.xtremelabs.robolectric.Robolectric;
12 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
13 import com.xtremelabs.robolectric.util.Join;
14 import com.xtremelabs.robolectric.util.Transcript;
26 Robolectric.getBackgroundScheduler().pause();
27 Robolectric.getUiThreadScheduler().pause();
37 Robolectric.runBackgroundTasks();
41 Robolectric.runUiThreadTasks()
    [all...]
PaintTest.java 1 package com.xtremelabs.robolectric.shadows;
8 import com.xtremelabs.robolectric.Robolectric;
9 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
11 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
20 Paint paint = Robolectric.newInstanceOf(Paint.class);
29 Paint paint = Robolectric.newInstanceOf(Paint.class);
38 Paint paint = Robolectric.newInstanceOf(Paint.class);
InputMethodManagerTest.java 1 package com.xtremelabs.robolectric.shadows;
10 import com.xtremelabs.robolectric.Robolectric;
11 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
24 manager = (InputMethodManager) Robolectric.application.getSystemService(Activity.INPUT_METHOD_SERVICE);
25 shadow = Robolectric.shadowOf(manager);
MediaPlayerTest.java 1 package com.xtremelabs.robolectric.shadows;
4 import com.xtremelabs.robolectric.Robolectric;
5 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
21 mediaPlayer = Robolectric.newInstanceOf(MediaPlayer.class);
22 shadowMediaPlayer = Robolectric.shadowOf(mediaPlayer);
NetworkInfoTest.java 1 package com.xtremelabs.robolectric.shadows;
4 import com.xtremelabs.robolectric.Robolectric;
5 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
9 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
18 NetworkInfo networkInfo = Robolectric.newInstanceOf(NetworkInfo.class);
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/
RobolectricTestRunnerTest.java 1 package com.xtremelabs.robolectric;
3 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
14 import com.xtremelabs.robolectric.annotation.DisableStrictI18n;
15 import com.xtremelabs.robolectric.annotation.EnableStrictI18n;
16 import com.xtremelabs.robolectric.annotation.Values;
17 import com.xtremelabs.robolectric.res.ResourceLoader;
24 assertNotNull(Robolectric.application);
25 assertEquals(MyTestApplication.class, Robolectric.application.getClass());
26 assertFalse(((MyTestApplication) Robolectric.application).onCreateWasCalled)
    [all...]
TemporaryBindingsTest.java 1 package com.xtremelabs.robolectric;
4 import com.xtremelabs.robolectric.internal.Implements;
5 import com.xtremelabs.robolectric.shadows.ShadowView;
9 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
20 Robolectric.bindShadowClass(TemporaryShadowView.class);
22 assertThat(Robolectric.shadowOf_(new View(null)).getClass().getSimpleName(),
30 Robolectric.bindShadowClass(TemporaryShadowView.class);
32 assertThat(Robolectric.shadowOf_(new View(null)).getClass().getSimpleName(),
RobolectricTest.java 1 package com.xtremelabs.robolectric;
8 import com.xtremelabs.robolectric.internal.Implementation;
9 import com.xtremelabs.robolectric.internal.Implements;
10 import com.xtremelabs.robolectric.shadows.ShadowDisplay;
11 import com.xtremelabs.robolectric.util.TestOnClickListener;
27 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
57 Robolectric.bindShadowClass(TestShadowView.class);
58 Robolectric.logMissingInvokedShadowMethods();
87 Robolectric.clickOn(view)
    [all...]

Completed in 101 milliseconds

1 2 3 4 5 6 7 8 91011