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

12 3 4 5 6 7 8 9

  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
MatrixCursorTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
35 assertThat(cursor.getCount(), equalTo(2));
39 assertThat(cursor.getString(0), equalTo("foo"));
40 assertThat(cursor.getLong(1), equalTo(10L));
41 assertThat(cursor.getFloat(2), equalTo(0.1f));
45 assertThat(cursor.getString(0), equalTo("baz"));
46 assertThat(cursor.getLong(1), equalTo(20L));
56 assertThat(cursor.getColumnCount(), equalTo(3));
58 assertThat(cursor.getColumnName(0), equalTo("a"));
59 assertThat(cursor.getColumnName(1), equalTo("b"))
    [all...]
MessageTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
28 assertThat(m.getData(), equalTo(b));
38 assertThat(m.peekData(), equalTo(b));
46 assertThat(m.getTarget(), equalTo(h));
62 assertThat(m2.arg1, equalTo(m.arg1));
63 assertThat(m2.arg2, equalTo(m.arg2));
64 assertThat(m2.obj, equalTo(m.obj));
65 assertThat(m2.what, equalTo(m.what));
66 assertThat(m2.getData(), equalTo(m.getData()));
80 assertThat(m.getTarget(), equalTo(h))
    [all...]
SpannableStringBuilderTest.java 8 import static org.hamcrest.CoreMatchers.equalTo;
18 assertThat(builder.toString(), equalTo("abcdef"));
24 assertThat(builder.length(), equalTo(3));
30 assertThat(builder.replace(2, 3, "").toString(), equalTo("ab"));
31 assertThat(builder.replace(0, 2, "xyz").toString(), equalTo("xyz"));
37 assertThat(builder.insert(1, "xy").toString(), equalTo("axybc"));
43 assertThat(builder.length(), equalTo(3));
45 assertThat( builder.length(), equalTo(0));
SQLiteQueryBuilderTest.java 10 import static org.hamcrest.CoreMatchers.equalTo;
30 assertThat(sql, equalTo("SELECT DISTINCT id, name FROM table_name"));
41 assertThat(sql, equalTo("SELECT id FROM table_name"));
51 assertThat(sql, equalTo("SELECT id, name FROM table_name"));
60 assertThat(sql, equalTo("SELECT * FROM table_name"));
70 assertThat(sql, equalTo("SELECT person, department, division FROM table_name WHERE (id = 2 AND name = 'Chuck')"));
80 assertThat(sql, equalTo("SELECT person, department, division FROM table_name GROUP BY person"));
90 assertThat(sql, equalTo("SELECT person, department, division FROM table_name WHERE (id = 2 AND name = 'Chuck') GROUP BY person"));
100 assertThat(sql, equalTo("SELECT person, department, division FROM table_name WHERE (id = 2 AND name = 'Chuck') HAVING SUM(hours) < 20"));
110 assertThat(sql, equalTo("SELECT person, department, division FROM table_name WHERE (id = 2 AND name = 'Chuck') GROUP BY pe (…)
    [all...]
TypedValueTest.java 9 import static org.hamcrest.core.IsEqual.equalTo;
20 assertThat(convertedValue, equalTo(50f));
28 assertThat(booleanFalseString, equalTo("false"));
29 assertThat(booleanTrueString, equalTo("true"));
36 assertThat(nullString, equalTo(null));
43 assertThat(intString, equalTo("37"));
50 assertThat(hexString, equalTo("0xcafebabe"));
57 assertThat(colorString, equalTo("#cafebabe"));
73 assertThat(expectedValue.assetCookie, equalTo(actualValue.assetCookie));
74 assertThat(expectedValue.data, equalTo(actualValue.data))
    [all...]
CheckBoxTest.java 8 import static org.hamcrest.CoreMatchers.equalTo;
16 assertThat(checkBox.isChecked(), equalTo(false));
19 assertThat(checkBox.isChecked(), equalTo(true));
22 assertThat(checkBox.isChecked(), equalTo(false));
25 assertThat(checkBox.isChecked(), equalTo(true));
MediaStoreTest.java 9 import static org.hamcrest.CoreMatchers.equalTo;
16 assertThat(Images.Media.EXTERNAL_CONTENT_URI.toString(), equalTo("content://media/external/images/media"));
17 assertThat(Images.Media.INTERNAL_CONTENT_URI.toString(), equalTo("content://media/internal/images/media"));
18 assertThat(Video.Media.EXTERNAL_CONTENT_URI.toString(), equalTo("content://media/external/video/media"));
19 assertThat(Video.Media.INTERNAL_CONTENT_URI.toString(), equalTo("content://media/internal/video/media"));
ResolveInfoTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
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"));
CameraSizeTest.java 11 import static org.hamcrest.CoreMatchers.equalTo;
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));
PairTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
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()));
PreferenceGroupTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
55 assertThat( group.getPreferenceCount(), equalTo(0));
58 assertThat( group.addPreference(pref1), equalTo(true));
59 assertThat( group.getPreferenceCount(), equalTo(1));
62 assertThat( group.addPreference(pref1), equalTo(true));
63 assertThat( group.getPreferenceCount(), equalTo(1));
66 assertThat( group.addPreference(pref2), equalTo(true));
67 assertThat( group.getPreferenceCount(), equalTo(2));
72 assertThat( group.getPreferenceCount(), equalTo(0));
76 assertThat( group.getPreferenceCount(), equalTo(1))
    [all...]
BinderTest.java 4 import static org.hamcrest.CoreMatchers.equalTo;
21 assertThat(Binder.getCallingPid(), equalTo(47));
28 assertThat(pid, not(equalTo(0)));
LayoutParamsTest.java 8 import static org.hamcrest.CoreMatchers.equalTo;
16 assertThat(layoutParams.width, equalTo(123));
17 assertThat(layoutParams.height, equalTo(456));
ProcessTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
19 assertThat(pid, not(equalTo(0)));
26 assertThat(android.os.Process.myPid(), equalTo(47));
SettingsTest.java 13 import static org.hamcrest.CoreMatchers.equalTo;
31 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(1));
35 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(1));
41 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(1));
46 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(0));
51 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(0));
52 assertThat(Settings.System.getInt(contentResolver, "property", 2), equalTo(2));
55 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(1));
60 assertThat(Settings.Secure.getInt(contentResolver, "property", 0), equalTo(0));
61 assertThat(Settings.Secure.getInt(contentResolver, "property", 2), equalTo(2))
    [all...]
HandlerTest.java 16 import static org.hamcrest.CoreMatchers.equalTo;
103 assertThat(scratchRunnable.wasRun, equalTo(true));
110 assertThat(scratchRunnable.wasRun, equalTo(false));
117 assertThat(scratchRunnable.wasRun, equalTo(true));
130 assertThat(scratchRunnable.wasRun, equalTo(false));
137 assertThat(scratchRunnable.wasRun, equalTo(true));
149 assertThat(task1.wasRun, equalTo(true));
150 assertThat(task2.wasRun, equalTo(true));
162 assertThat(task1.wasRun, equalTo(true));
163 assertThat(task2.wasRun, equalTo(false))
    [all...]
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));
PreferenceTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
55 assertThat(shadow.getDefStyle(), equalTo(defStyle));
61 assertThat(shadow.getDefStyle(), equalTo(0));
67 assertThat(shadow.getDefStyle(), equalTo(0));
78 assertThat( preference.getKey(), equalTo(key) );
87 assertThat(preference.getKey(), equalTo(key));
96 assertThat(preference.getTitle(), equalTo(title));
103 assertThat(preference.getTitle(), not(equalTo(expected)));
105 assertThat(preference.getTitle(), equalTo(expected));
114 assertThat(preference.getSummary(), equalTo(summary))
    [all...]
WebViewTest.java 36 assertThat(shadowOf(webView).getLastLoadedUrl(), equalTo("http://example.com"));
43 assertThat(lastLoadData.data, equalTo("<html><body><h1>Hi</h1></body></html>"));
44 assertThat(lastLoadData.mimeType, equalTo("text/html"));
45 assertThat(lastLoadData.encoding, equalTo("utf-8"));
52 assertThat(lastLoadData.baseUrl, equalTo("base/url"));
53 assertThat(lastLoadData.data, equalTo("<html><body><h1>Hi</h1></body></html>"));
54 assertThat(lastLoadData.mimeType, equalTo("text/html"));
55 assertThat(lastLoadData.encoding, equalTo("utf-8"));
56 assertThat(lastLoadData.historyUrl, equalTo("history/url"));
116 assertThat(shadowWebView.getRunFlag(), equalTo(false))
    [all...]
DefaultRequestDirectorTest.java 34 import static org.hamcrest.core.IsEqual.equalTo;
69 assertThat(response.getStatusLine().getStatusCode(), equalTo(200));
70 assertThat(Strings.fromStream(response.getEntity().getContent()), equalTo("a happy response body"));
83 assertThat(response.getStatusLine().getStatusCode(), equalTo(200));
84 assertThat(Strings.fromStream(response.getEntity().getContent()), equalTo("a happy response body"));
95 assertThat(response.getStatusLine().getStatusCode(), equalTo(200));
96 assertThat(Strings.fromStream(response.getEntity().getContent()), equalTo("a cheery response body"));
108 assertThat(response.getStatusLine().getStatusCode(), equalTo(404));
117 assertThat(getResponse.getStatusLine().getStatusCode(), equalTo(200));
118 assertThat(Strings.fromStream(getResponse.getEntity().getContent()), equalTo("a cheery response body"))
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/database/
SimpleTestCursorTest.java 15 import static org.hamcrest.CoreMatchers.equalTo;
40 assertThat(cursor.uri, equalTo(uri));
41 assertThat(cursor.projection[0], equalTo("projection"));
42 assertThat(cursor.selection, equalTo("selection"));
43 assertThat(cursor.selectionArgs[0], equalTo("selection"));
44 assertThat(cursor.sortOrder, equalTo("sortOrder"));
50 assertThat(cursor.moveToNext(), equalTo(true));
51 assertThat(cursor.getString(cursor.getColumnIndex("stringColumn")), equalTo("aString"));
52 assertThat(cursor.getLong(cursor.getColumnIndex("longColumn")), equalTo(1234L));
58 assertThat(cursor.moveToNext(), equalTo(true))
    [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...]
IntegerResourceLoaderTest.java 4 import static org.hamcrest.CoreMatchers.equalTo;
30 assertThat( resourceLoader.getValue( R.integer.test_integer1 ), equalTo( 2000 ) );
31 assertThat( resourceLoader.getValue( R.integer.test_integer2 ), equalTo( 9 ) );
32 assertThat( resourceLoader.getValue( R.integer.test_large_hex), equalTo( 0xFFFF0000 ) );
ResourceExtractorTest.java 8 import static org.hamcrest.CoreMatchers.equalTo;
23 assertThat(resourceExtractor.getLocalResourceId("id/textStyle"), equalTo(R.id.textStyle));
29 assertThat(resourceExtractor.getResourceId("android:id/text1"), equalTo(android.R.id.text1));
34 assertThat(resourceExtractor.getLocalResourceId("@null"), equalTo(0));

Completed in 158 milliseconds

12 3 4 5 6 7 8 9