/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
AbsSeekBarTest.java | 12 import static org.junit.Assert.assertThat; 21 assertThat(shadow, instanceOf(ShadowProgressBar.class));
|
ColorTest.java | 4 import static org.junit.Assert.assertThat; 18 assertThat(color, is(-6250336)); 24 assertThat(color, is(1688248480));
|
ContentProviderResultTest.java | 5 import static org.junit.Assert.assertThat; 20 assertThat(result.count, is(5)); 27 assertThat(result.uri, equalTo(uri));
|
FrameLayoutTest.java | 13 import static org.junit.Assert.assertThat; 31 assertThat(layoutParams, instanceOf(ViewGroup.MarginLayoutParams.class));
|
LayoutParamsTest.java | 9 import static org.junit.Assert.assertThat; 16 assertThat(layoutParams.width, equalTo(123)); 17 assertThat(layoutParams.height, equalTo(456));
|
MarginLayoutParamsTest.java | 11 import static org.junit.Assert.assertThat; 23 assertThat(marginLayoutParams.leftMargin, equalTo(1)); 24 assertThat(marginLayoutParams.topMargin, equalTo(2)); 25 assertThat(marginLayoutParams.rightMargin, equalTo(3)); 26 assertThat(marginLayoutParams.bottomMargin, equalTo(4));
|
PeriodicSyncTest.java | 13 import static org.junit.Assert.assertThat; 24 assertThat(sync.account, is(a)); 25 assertThat(sync.authority, equalTo("auth")); 26 assertThat(sync.period, equalTo(120l));
|
PreferenceCategoryTest.java | 4 import static org.junit.Assert.assertThat; 30 assertThat(shadow, instanceOf(ShadowPreferenceGroup.class));
|
ScanResultTest.java | 11 import static org.hamcrest.MatcherAssert.assertThat; 19 assertThat(scanResult.SSID, equalTo("SSID")); 20 assertThat(scanResult.BSSID, equalTo("BSSID")); 21 assertThat(scanResult.capabilities, equalTo("Caps")); 22 assertThat(scanResult.level, equalTo(11)); 23 assertThat(scanResult.frequency, equalTo(42));
|
AndroidHttpClientTest.java | 4 import static org.junit.Assert.assertThat; 25 assertThat(client, not(nullValue())); 31 assertThat(client, not(nullValue())); 39 assertThat(resp.getStatusLine().getStatusCode(), is(200)); 40 assertThat(Strings.fromStream(resp.getEntity().getContent()), equalTo("foo"));
|
BinderTest.java | 3 import static org.junit.Assert.assertThat; 21 assertThat(Binder.getCallingPid(), equalTo(47)); 28 assertThat(pid, not(equalTo(0)));
|
CameraSizeTest.java | 13 import static org.junit.Assert.assertThat; 27 assertThat(cameraSize.width, equalTo(480)); 28 assertThat(cameraSize.height, equalTo(320)); 33 assertThat(cameraSize.width, not(equalTo(640))); 35 assertThat(cameraSize.width, equalTo(640)); 40 assertThat(cameraSize.height, not(equalTo(480))); 42 assertThat(cameraSize.height, equalTo(480));
|
ConfigurationTest.java | 15 import static org.junit.Assert.assertThat; 32 assertThat(configuration.screenLayout, equalTo(Configuration.SCREENLAYOUT_LONG_NO | Configuration.SCREENLAYOUT_SIZE_NORMAL)); 38 assertThat( configuration.locale, equalTo( Locale.US ) ); 41 assertThat( configuration.locale, equalTo( Locale.FRANCE ) );
|
LinearLayoutTest.java | 10 import static org.hamcrest.MatcherAssert.assertThat; 19 assertThat(layoutParams, instanceOf(LinearLayout.LayoutParams.class));
|
NotificationTest.java | 12 import static org.junit.Assert.assertThat; 21 assertThat(pendingIntent, is(notification.contentIntent));
|
PairTest.java | 4 import static org.junit.Assert.assertThat; 18 assertThat(pair.first, equalTo("a")); 19 assertThat(pair.second, equalTo(1)); 25 assertThat(p.first, equalTo("Foo")); 26 assertThat(p.second, equalTo("Bar")); 31 assertThat(Pair.create("1", 2), equalTo(Pair.create("1", 2))); 36 assertThat(Pair.create("1", 2).hashCode(), equalTo(Pair.create("1", 2).hashCode()));
|
PreferenceScreenTest.java | 15 import static org.junit.Assert.assertThat; 31 assertThat(shadow, instanceOf(ShadowPreferenceGroup.class)); 38 assertThat(screen.getDialog(), nullValue()); 40 assertThat(screen.getDialog(), sameInstance(dialog));
|
ProcessTest.java | 5 import static org.junit.Assert.assertThat; 19 assertThat(pid, not(equalTo(0))); 26 assertThat(android.os.Process.myPid(), equalTo(47));
|
ResolveInfoTest.java | 4 import static org.junit.Assert.assertThat; 30 assertThat("test", equalTo(mResolveInfo.loadLabel(null))); 35 assertThat(mResolveInfo.loadLabel(null).toString(), equalTo("name")); 36 assertThat(mResolveInfo.activityInfo.packageName, equalTo("package")); 37 assertThat(mResolveInfo.activityInfo.name, equalTo("activity"));
|
ShadowBinderTest.java | 13 import static org.hamcrest.MatcherAssert.assertThat; 23 assertThat(testBinder.code, equalTo(2)); 24 assertThat(testBinder.data, sameInstance(data)); 25 assertThat(testBinder.reply, sameInstance(reply)); 26 assertThat(testBinder.flags, equalTo(3));
|
StateListDrawableTest.java | 14 import static org.junit.Assert.assertThat; 30 assertThat(((ShadowBitmapDrawable) shadowOf(drawableForState)).getPath(), is("/foo")); 43 assertThat(((ShadowBitmapDrawable) shadowOf(drawableForState)).getPath(), is("/foo"));
|
TabActivityTest.java | 13 import static org.junit.Assert.assertThat; 24 assertThat(tabHost1, equalTo(tabHost2)); 31 assertThat(activity.getTabWidget(), instanceOf(TabWidget.class));
|
TextUtilsTest.java | 17 assertThat( 24 assertThat(TextUtils.isEmpty(null), equalTo(true)); 25 assertThat(TextUtils.isEmpty(""), equalTo(true)); 26 assertThat(TextUtils.isEmpty(" "), equalTo(false)); 27 assertThat(TextUtils.isEmpty("123"), equalTo(false)); 31 assertThat(TextUtils.join(",", new String[] { "1" }), equalTo("1")); 32 assertThat(TextUtils.join(",", new String[] { "1", "2", "3" }), equalTo("1,2,3")); 33 assertThat(TextUtils.join(",", Arrays.asList("1", "2", "3")), equalTo("1,2,3")); 38 assertThat(TextUtils.isDigitsOnly("123456"), equalTo(true)); 39 assertThat(TextUtils.isDigitsOnly("124a56"), equalTo(false)) [all...] |
WifiConfigurationTest.java | 11 import static org.junit.Assert.assertThat; 45 assertThat(copy.networkId, equalTo(1)); 46 assertThat(copy.SSID, equalTo("SSID")); 47 assertThat(copy.BSSID, equalTo("BSSID")); 48 assertThat(copy.preSharedKey, equalTo("preSharedKey")); 49 assertThat(copy.status, equalTo(666)); 50 assertThat(copy.wepTxKeyIndex, equalTo(777)); 51 assertThat(copy.priority, equalTo(2)); 52 assertThat(copy.hiddenSSID, equalTo(true)); 53 assertThat(copy.allowedKeyManagement.get(1), equalTo(true)) [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/ |
H2Test.java | 14 import static org.junit.Assert.assertThat; 36 assertThat(insertString.sql, equalTo("INSERT INTO table_name (float_value, byte_data, name, int_value) VALUES (?, ?, ?, ?);"));
|