HomeSort by relevance Sort by last modified time
    Searched defs:equalTo (Results 26 - 50 of 133) sorted by null

12 3 4 5 6

  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
InputMethodManagerTest.java 13 import static org.hamcrest.CoreMatchers.equalTo;
30 assertThat(shadow.isSoftInputVisible(), equalTo(false));
33 assertThat(shadow.isSoftInputVisible(), equalTo(true));
36 assertThat(shadow.isSoftInputVisible(), equalTo(false));
MediaPlayerTest.java 10 import static org.hamcrest.CoreMatchers.equalTo;
31 assertThat(mediaPlayer.getCurrentPosition(), equalTo(position));
TextUtilsTest.java 19 equalTo("aAbBcCd"));
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 10 import static org.hamcrest.CoreMatchers.equalTo;
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...]
KeyguardManagerTest.java 11 import static org.hamcrest.CoreMatchers.equalTo;
23 assertThat( mgr.inKeyguardRestrictedInputMode(), equalTo( false ) );
26 assertThat( mgr.inKeyguardRestrictedInputMode(), equalTo( true ) );
SQLiteDatabaseTest.java 14 import static org.hamcrest.CoreMatchers.equalTo;
25 equalTo(SQLiteMap.class.getName()));
31 assertThat(id, not(equalTo(-1L)));
38 assertThat(replaceId, equalTo(id));
43 assertThat(resultSet.next(), equalTo(true));
44 assertThat(resultSet.getString(1), equalTo("Norris"));
TypedArrayTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
32 assertThat(typedArray.getBoolean(0, true), equalTo(true));
33 assertThat(typedArray.getBoolean(0, false), equalTo(false));
38 assertThat(typedArray.getInt(0, 15), equalTo(15));
39 assertThat(typedArray.getInteger(0, 24), equalTo(24));
44 assertThat(typedArray.getFloat(0, 0.5f), equalTo(0.5f));
49 assertThat(typedArray.getDimension(0, 0.5f), equalTo(0.5f));
54 assertThat(typedArray.getDimensionPixelOffset(0, 2), equalTo(2));
59 assertThat(typedArray.getDimensionPixelSize(0, 2), equalTo(2));
64 assertThat(typedArray.getLayoutDimension(0, 2), equalTo(2))
    [all...]
CanvasTest.java 11 import static org.hamcrest.CoreMatchers.equalTo;
84 assertThat(shadow.getPathPaintHistoryCount(), equalTo(1));
85 assertThat(shadow.getDrawnPath(0), equalTo(path));
86 assertThat(shadow.getDrawnPathPaint(0), equalTo(paint));
ContentProviderOperationBuilderTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
40 assertThat(values.get("stringTest").toString(), equalTo("bar"));
41 assertThat(Integer.parseInt(values.get("intTest").toString()), equalTo(5));
42 assertThat(Long.parseLong(values.get("longTest").toString()), equalTo(10L));
53 assertThat(selections.get("first"), equalTo(new String[] { "a", "b" }));
54 assertThat(selections.get("second"), equalTo(new String[] { "c", "d" }));
ContentProviderOperationTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
28 assertThat(operation.getUri(), equalTo(URI));
33 assertThat(shadowOperation.getValues().get("stringValue").toString(), equalTo("bar"));
56 assertThat(operation.getUri(), equalTo(URI));
60 assertThat(shadowOperation.getSelections().get("id_column"), equalTo(new String[] { "5" }));
70 assertThat(operation.getUri(), equalTo(URI));
74 assertThat(shadowOperation.getSelections().get("id_column"), equalTo(new String[] { "5" }));
CookieSyncManagerTest.java 4 import static org.hamcrest.CoreMatchers.equalTo;
37 assertThat( shadowMgr.synced(), equalTo( false ) );
39 assertThat( shadowMgr.synced(), equalTo( true ) );
41 assertThat( shadowMgr.synced(), equalTo( false ) );
CursorLoaderTest.java 10 import static org.hamcrest.CoreMatchers.equalTo;
29 assertThat(cursorLoader.getUri(), equalTo(uri));
30 assertThat(cursorLoader.getProjection(), equalTo(projection));
31 assertThat(cursorLoader.getSelection(), equalTo(selection));
32 assertThat(cursorLoader.getSelectionArgs(), equalTo(selectionArgs));
33 assertThat(cursorLoader.getSortOrder(), equalTo(sortOrder));
50 assertThat(cursorLoader.getUri(), equalTo(uri));
51 assertThat(cursorLoader.getProjection(), equalTo(projection));
52 assertThat(cursorLoader.getSelection(), equalTo(selection));
53 assertThat(cursorLoader.getSelectionArgs(), equalTo(selectionArgs))
    [all...]
DialogPreferenceTest.java 16 import static org.hamcrest.CoreMatchers.equalTo;
49 assertThat(shadow.getDefStyle(), equalTo(defStyle));
55 assertThat(shadow.getDefStyle(), equalTo(0));
60 assertThat((String) preference.getDialogMessage(), equalTo(TEST_DIALOG_MESSAGE));
EditTextTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
39 assertThat(editText.getText().toString(), equalTo(excessiveInput.subSequence(0, maxLength)));
50 assertThat(editText.getText().toString(), equalTo(input));
60 assertThat(editText.getText().toString(), equalTo(input));
PreferenceActivityTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
51 assertThat(shadow.getPreferencesResId(), equalTo(-1));
53 assertThat(shadow.getPreferencesResId(), equalTo(R.xml.preferences));
59 assertThat( activity.getPreferenceScreen().getPreferenceCount(), equalTo(6));
ProgressBarTest.java 9 import static org.hamcrest.CoreMatchers.equalTo;
28 assertThat(progressBar.getMax(), equalTo(100));
35 assertThat(progressBar.getMax(), equalTo(max));
43 assertThat(progressBar.getProgress(), equalTo(progress));
51 assertThat(progressBar.getSecondaryProgress(), equalTo(progress));
SslErrorHandlerTest.java 12 import static org.hamcrest.CoreMatchers.equalTo;
36 assertThat(shadow.wasCancelCalled(), equalTo(false));
38 assertThat(shadow.wasCancelCalled(), equalTo(true));
43 assertThat(shadow.wasProceedCalled(), equalTo(false));
45 assertThat(shadow.wasProceedCalled(), equalTo(true));
StatFsTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
21 assertThat(statsFs.getBlockCount(), equalTo(100));
22 assertThat(statsFs.getFreeBlocks(), equalTo(20));
23 assertThat(statsFs.getAvailableBlocks(), equalTo(10));
24 assertThat(statsFs.getBlockSize(), equalTo(ShadowStatFs.BLOCK_SIZE));
32 assertThat(statsFs.getBlockCount(), equalTo(100));
33 assertThat(statsFs.getFreeBlocks(), equalTo(20));
34 assertThat(statsFs.getAvailableBlocks(), equalTo(10));
35 assertThat(statsFs.getBlockSize(), equalTo(ShadowStatFs.BLOCK_SIZE));
41 assertThat(statsFs.getBlockCount(), equalTo(0))
    [all...]
VibratorTest.java 4 import static org.hamcrest.CoreMatchers.equalTo;
34 assertThat(shadowVibrator.getMilliseconds(), equalTo(5000L));
43 assertThat(shadowVibrator.getPattern(), equalTo(pattern));
44 assertThat(shadowVibrator.getRepeat(), equalTo(2));
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/util/
H2Map_TypeForwardOnlyTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
28 assertThat(map.getResultSetType(),equalTo(ResultSet.TYPE_FORWARD_ONLY));
H2MapTest.java 11 import static org.hamcrest.CoreMatchers.equalTo;
26 assertThat(map.getDriverClassName(), equalTo("org.h2.Driver"));
31 assertThat(map.getConnectionString(), equalTo("jdbc:h2:mem:"));
36 assertThat(map.getScrubSQL("autoincrement"), equalTo("auto_increment"));
41 assertThat(map.getScrubSQL("integer"), equalTo("bigint(19)"));
61 assertThat(map.getSelectLastInsertIdentity(), equalTo("SELECT IDENTITY();"));
66 assertThat(map.getResultSetType(), equalTo(ResultSet.TYPE_SCROLL_INSENSITIVE));
71 assertThat(map.getScrubSQL("INSERT INTO "), equalTo("INSERT INTO "));
72 assertThat(map.getScrubSQL("INSERT OR ROLLBACK INTO "), equalTo("INSERT INTO "));
73 assertThat(map.getScrubSQL("INSERT OR ABORT INTO "), equalTo("INSERT INTO "))
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
AttrResourceLoaderTest.java 13 import static org.hamcrest.CoreMatchers.equalTo;
31 assertThat(attrResourceLoader.convertValueToEnum(CustomView.class, "xxx", "itemType", "integer"), equalTo("0"));
32 assertThat(attrResourceLoader.hasAttributeFor(CustomView.class, "xxx", "itemType"), equalTo(true));
34 assertThat(attrResourceLoader.convertValueToEnum(CustomView.class, "xxx", "itemType", "string"), equalTo("1"));
35 assertThat(attrResourceLoader.hasAttributeFor(CustomView.class, "xxx", "otherItemType"), equalTo(false));
41 assertThat(attrResourceLoader.convertValueToEnum(ImageView.class, "android", "scaleType", "fitCenter"), equalTo(expected));
42 assertThat(attrResourceLoader.hasAttributeFor(ImageView.class, "android", "scaleType"), equalTo(true));
47 assertThat(attrResourceLoader.convertValueToEnum(SubCustomView.class, "xxx", "itemType", "integer"), equalTo("0"));
48 assertThat(attrResourceLoader.hasAttributeFor(SubCustomView.class, "xxx", "itemType"), equalTo(true));
ColorResourceLoaderTest.java 10 import static org.hamcrest.CoreMatchers.equalTo;
27 assertThat(colorResourceLoader.getValue(R.drawable.l0_red), equalTo(-0x000001));
32 assertThat(colorResourceLoader.getValue(R.color.black), equalTo(0x000000));
33 assertThat(colorResourceLoader.getValue(R.color.white), equalTo(0xffffff));
38 assertThat(colorResourceLoader.getValue(R.color.clear), equalTo(0x000001));
43 assertThat(colorResourceLoader.getValue(R.color.foreground), equalTo(0xf5f5f5));
48 assertThat(colorResourceLoader.getValue(R.color.background), equalTo(0xf5f5f5));
53 assertThat(colorResourceLoader.getValue(R.color.color_with_alpha), equalTo(0x802C76AD));
58 assertThat(colorResourceLoader.getValue(android.R.color.black), equalTo(Color.BLACK));
63 assertThat(colorResourceLoader.getValue(android.R.color.background_dark), equalTo(0xFF000000))
    [all...]
TestAttributeSetTest.java 16 import static org.hamcrest.CoreMatchers.equalTo;
37 assertThat(testAttributeSet.getAttributeResourceValue("android", "id", 0), equalTo(android.R.id.text1));
59 assertThat(testAttributeSet.getAttributeResourceValue("android", "id", 0), equalTo(android.R.id.text1));
67 assertThat(testAttributeSet.getAttributeResourceValue("android", "id", 0), equalTo(R.id.text1));
75 assertThat(testAttributeSet.getAttributeResourceValue("com.some.namespace", "message", 0), equalTo(R.string.howdy));
83 assertThat(testAttributeSet.getAttributeResourceValue("com.some.namespace", "message", 0), equalTo(R.string.howdy));
89 assertThat(testAttributeSet.getAttributeResourceValue("com.some.namespace", "message", -1), equalTo(-1));
97 assertThat(testAttributeSet.getAttributeBooleanValue("com.some.namespace", "isSugary", false), equalTo(true));
105 assertThat(testAttributeSet.getAttributeBooleanValue("com.some.namespace", "isSugary", false), equalTo(true));
111 assertThat(testAttributeSet.getAttributeBooleanValue("com.some.namespace", "isSugary", true), equalTo(true))
    [all...]
  /external/hamcrest/library/src/org/hamcrest/
Matchers.java 10 * eg. assertThat(cheese, equalTo(smelly))
11 * vs assertThat(cheese, is(equalTo(smelly)))
18 * This is a shortcut to the frequently used is(equalTo(x)).
20 * eg. assertThat(cheese, is(equalTo(smelly)))
45 * This is a shortcut to the frequently used not(equalTo(x)).
47 * eg. assertThat(cheese, is(not(equalTo(smelly))))
58 public static <T> org.hamcrest.Matcher<T> equalTo(T operand) {
59 return org.hamcrest.core.IsEqual.equalTo(operand);

Completed in 964 milliseconds

12 3 4 5 6