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

1 2 3 4 5 6 7 8 9

  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
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...]
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...]
AbstractCursorTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
34 assertThat(cursor.moveToFirst(), equalTo(true));
35 assertThat(cursor.getCount(), equalTo(1));
40 assertThat(cursor.moveToFirst(), equalTo(false));
41 assertThat(cursor.getCount(), equalTo(0));
49 assertThat(cursor.moveToLast(), equalTo(true));
50 assertThat(cursor.getCount(), equalTo(2));
55 assertThat(cursor.moveToLast(), equalTo(false));
56 assertThat(cursor.getCount(), equalTo(0));
64 assertThat(cursor.moveToFirst(), equalTo(true))
    [all...]
TranslateAnimationTest.java 11 import static org.hamcrest.CoreMatchers.equalTo;
28 assertThat(shadow.getFromXType(), equalTo(1));
29 assertThat(shadow.getFromXValue(), equalTo(2f));
30 assertThat(shadow.getToXType(), equalTo(3));
31 assertThat(shadow.getToXValue(), equalTo(4f));
32 assertThat(shadow.getFromYType(), equalTo(5));
33 assertThat(shadow.getFromYValue(), equalTo(6f));
34 assertThat(shadow.getToYType(), equalTo(7));
35 assertThat(shadow.getToYValue(), equalTo(8f));
43 assertThat(shadow2.getFromXType(), equalTo(defType))
    [all...]
UriTest.java 8 import static org.hamcrest.CoreMatchers.equalTo;
17 assertThat(testUri.getQuery(), equalTo("param=value&another_param=another_value"));
18 assertThat(testUri.getPort(), equalTo(8080));
19 assertThat(testUri.getAuthority(), equalTo("someplace.com:8080"));
20 assertThat(testUri.getHost(), equalTo("someplace.com"));
21 assertThat(testUri.getFragment(), equalTo("top"));
22 assertThat(testUri.getPath(), equalTo("/a/path"));
23 assertThat(testUri.getScheme(), equalTo("http"));
AnimationTest.java 34 assertThat(listener.wasStartCalled, equalTo(false));
36 assertThat(listener.wasStartCalled, equalTo(true));
37 assertThat(listener.wasEndCalled, equalTo(false));
38 assertThat(listener.wasRepeatCalled, equalTo(false));
43 assertThat(listener.wasEndCalled, equalTo(false));
45 assertThat(listener.wasStartCalled, equalTo(false));
46 assertThat(listener.wasEndCalled, equalTo(true));
47 assertThat(listener.wasRepeatCalled, equalTo(false));
52 assertThat(listener.wasRepeatCalled, equalTo(false));
54 assertThat(listener.wasStartCalled, equalTo(false))
    [all...]
SQLiteCursorTest.java 18 import static org.hamcrest.CoreMatchers.equalTo;
66 assertThat(cursor.getColumnIndex("id"), equalTo(0));
67 assertThat(cursor.getColumnIndex("name"), equalTo(1));
72 assertThat(cursor.getColumnIndex("Fred"), equalTo(-1));
79 assertThat(cursor.getColumnIndex("id"), equalTo(0));
80 assertThat(cursor.getColumnIndex("name"), equalTo(1));
85 assertThat(cursor.getColumnIndexOrThrow("id"), equalTo(0));
86 assertThat(cursor.getColumnIndexOrThrow("name"), equalTo(1));
98 assertThat(cursor.getColumnIndexOrThrow("name"), equalTo(1));
110 assertThat(cursor.moveToFirst(), equalTo(true))
    [all...]
MarginLayoutParamsTest.java 10 import static org.hamcrest.CoreMatchers.equalTo;
23 assertThat(marginLayoutParams.leftMargin, equalTo(1));
24 assertThat(marginLayoutParams.topMargin, equalTo(2));
25 assertThat(marginLayoutParams.rightMargin, equalTo(3));
26 assertThat(marginLayoutParams.bottomMargin, equalTo(4));
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...]
IntentFilterTest.java 8 import static org.hamcrest.CoreMatchers.equalTo;
19 assertThat(intentFilter.getDataScheme(0), equalTo("http"));
20 assertThat(intentFilter.getDataScheme(1), equalTo("ftp"));
29 assertThat(intentFilter.getDataAuthority(0).getHost(), equalTo("test.com"));
30 assertThat(intentFilter.getDataAuthority(0).getPort(), equalTo(8080));
31 assertThat(intentFilter.getDataAuthority(1).getHost(), equalTo("example.com"));
32 assertThat(intentFilter.getDataAuthority(1).getPort(), equalTo(42));
MediaRecorderTest.java 30 assertThat(shadowMediaRecorder.getAudioChannels(), not(equalTo(2)));
32 assertThat(shadowMediaRecorder.getAudioChannels(), equalTo(2));
37 assertThat(shadowMediaRecorder.getAudioEncoder(), not(equalTo(MediaRecorder.AudioEncoder.AMR_NB)));
38 assertThat(shadowMediaRecorder.getState(), not(equalTo(ShadowMediaRecorder.STATE_DATA_SOURCE_CONFIGURED)));
40 assertThat(shadowMediaRecorder.getAudioEncoder(), equalTo(MediaRecorder.AudioEncoder.AMR_NB));
41 assertThat(shadowMediaRecorder.getState(), equalTo(ShadowMediaRecorder.STATE_DATA_SOURCE_CONFIGURED));
46 assertThat(shadowMediaRecorder.getAudioEncodingBitRate(), not(equalTo(128000)));
48 assertThat(shadowMediaRecorder.getAudioEncodingBitRate(), equalTo(128000));
53 assertThat(shadowMediaRecorder.getAudioSamplingRate(), not(equalTo(22050)));
55 assertThat(shadowMediaRecorder.getAudioSamplingRate(), equalTo(22050))
    [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...]
ScanResultTest.java 10 import static org.hamcrest.CoreMatchers.equalTo;
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));
DatabaseUtilsTest.java 3 import static org.hamcrest.CoreMatchers.equalTo;
16 assertThat( ShadowDatabaseUtils.sqlEscapeString( "foobar" ), equalTo( "'foobar'" ) );
17 assertThat( ShadowDatabaseUtils.sqlEscapeString( "Rich's" ), equalTo( "'Rich''s'" ) );
PhoneNumberUtilTest.java 8 import static org.hamcrest.CoreMatchers.equalTo;
15 assertThat(PhoneNumberUtils.formatNumber("12345678901"), equalTo("12345678901-formatted"));
20 assertThat(PhoneNumberUtils.stripSeparators("12345678901"), equalTo("12345678901-stripped"));
CameraParametersTest.java 14 import static org.hamcrest.CoreMatchers.equalTo;
34 assertThat(shadowParameters.getPictureHeight(), not(equalTo(600)));
35 assertThat(shadowParameters.getPictureWidth(), not(equalTo(800)));
38 assertThat(pictureSize.width, equalTo(800));
39 assertThat(pictureSize.height, equalTo(600));
40 assertThat(shadowParameters.getPictureHeight(), equalTo(600));
41 assertThat(shadowParameters.getPictureWidth(), equalTo(800));
48 assertThat(fpsRange[1], not(equalTo(15)));
49 assertThat(fpsRange[0], not(equalTo(25)));
52 assertThat(fpsRange[1], equalTo(25))
    [all...]
AccountTest.java 9 import static org.hamcrest.CoreMatchers.equalTo;
20 assertThat(account.name, equalTo("name"));
21 assertThat(account.type, equalTo("type"));
33 assertThat(account.name, equalTo("name"));
34 assertThat(account.type, equalTo("type"));
46 assertThat(expected, equalTo(actual));
62 assertThat(account.toString(), equalTo("Account {name=name, type=type}"));
67 assertThat(new Account("a", "b"), equalTo(new Account("a", "b")));
68 assertThat(new Account("a", "b"), not(equalTo(new Account("c", "b"))));
69 assertThat(new Account("a", "b").hashCode(), equalTo(new Account("a", "b").hashCode()))
    [all...]
CountDownTimerTest.java 12 import static org.hamcrest.CoreMatchers.equalTo;
48 assertThat(msg, not(equalTo("onTick() is called")));
50 assertThat(msg, equalTo("onTick() is called"));
55 assertThat(msg, not(equalTo("onFinish() is called")));
57 assertThat(msg, equalTo("onFinish() is called"));
62 assertThat(shadowCountDownTimer.hasStarted(), equalTo(false));
65 assertThat(shadowCountDownTimer.hasStarted(), equalTo(true));
72 assertThat(shadowCountDownTimer.hasStarted(), equalTo(true));
74 assertThat(shadowCountDownTimer.hasStarted(), equalTo(false));
79 assertThat(shadowCountDownTimer.getCountDownInterval(), equalTo(countDownInterval))
    [all...]
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...]
SQLiteStatementTest.java 16 import static org.hamcrest.CoreMatchers.equalTo;
49 assertThat(pkeyOne, equalTo(1L));
50 assertThat(pkeyTwo, equalTo(2L));
54 assertThat(resultSet.next(), equalTo(true));
55 assertThat(resultSet.getInt(1), equalTo(2));
59 assertThat(resultSet.next(), equalTo(true));
60 assertThat(resultSet.getInt(1), equalTo(1));
61 assertThat(resultSet.getString(2), equalTo("Leg Press"));
62 assertThat(resultSet.getInt(3), equalTo(0));
63 assertThat(resultSet.next(), equalTo(true))
    [all...]
DatabaseTestBase.java 18 import static org.hamcrest.CoreMatchers.equalTo;
95 assertThat(cursor.moveToFirst(), equalTo(true));
100 assertThat(stringValueFromDatabase, equalTo(stringColumnValue));
101 assertThat(byteValueFromDatabase, equalTo(byteColumnValue));
118 assertThat(cursor.moveToFirst(), equalTo(true));
123 assertThat(stringValueFromDatabase, equalTo(stringColumnValue));
124 assertThat(byteValueFromDatabase, equalTo(byteColumnValue));
143 assertThat(cursor.moveToFirst(), equalTo(true));
146 assertThat(stringValueFromDatabase, equalTo(stringColumnValue));
147 assertThat(byteValueFromDatabase, equalTo(byteColumnValue))
    [all...]
  /external/robolectric/src/test/java/android/webkit/
TestWebSettingsTest.java 11 import static org.hamcrest.CoreMatchers.equalTo;
28 assertThat(webSettings.getAllowFileAccess(), equalTo(true));
29 assertThat(webSettings.getBlockNetworkImage(), equalTo(false));
30 assertThat(webSettings.getBlockNetworkLoads(), equalTo(false));
31 assertThat(webSettings.getBuiltInZoomControls(), equalTo(true));
32 assertThat(webSettings.getDatabaseEnabled(), equalTo(false));
33 assertThat(webSettings.getDomStorageEnabled(), equalTo(false));
34 assertThat(webSettings.getJavaScriptEnabled(), equalTo(false));
35 assertThat(webSettings.getLightTouchEnabled(), equalTo(false));
36 assertThat(webSettings.getLoadWithOverviewMode(), equalTo(false))
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/util/
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...]
DatabaseConfigTest.java 12 import static org.hamcrest.CoreMatchers.equalTo;
25 assertThat(DatabaseConfig.getDatabaseMap().getClass().getName(), equalTo(H2Map.class.getName()));
26 assertThat(DatabaseConfig.isMapLoaded(), equalTo(false));
28 assertThat(DatabaseConfig.isMapLoaded(), equalTo(true));
29 assertThat(DatabaseConfig.getResultSetType(), equalTo(ResultSet.TYPE_SCROLL_INSENSITIVE));
33 assertThat(DatabaseConfig.isMapLoaded(), equalTo(false));
34 assertThat(DatabaseConfig.getDatabaseMap(), equalTo((DatabaseMap) ForwardOnlyMap));
36 assertThat(DatabaseConfig.isMapLoaded(), equalTo(true));
37 assertThat(DatabaseConfig.getDatabaseMap().getClass().getName(), equalTo(H2Map_TypeForwardOnly.class.getName()));
38 assertThat(DatabaseConfig.getResultSetType(), equalTo(ResultSet.TYPE_FORWARD_ONLY))
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/content/
TestSharedPreferencesTest.java 7 import static org.hamcrest.CoreMatchers.equalTo;
46 assertThat(anotherSharedPreferences.getFloat("float", 666f), equalTo(1.1f));
47 assertThat(anotherSharedPreferences.getInt("int", 666), equalTo(2));
48 assertThat(anotherSharedPreferences.getLong("long", 666l), equalTo(3l));
49 assertThat(anotherSharedPreferences.getString("string", "wacka wa"), equalTo("foobar"));
56 assertThat(all.size(), equalTo(5));
57 assertThat((Integer) all.get("int"), equalTo(2));
74 assertThat(anotherSharedPreferences.getFloat("float", 666f), equalTo(1.1f));
75 assertThat(anotherSharedPreferences.getInt("int", 666), equalTo(2));
76 assertThat(anotherSharedPreferences.getLong("long", 666l), equalTo(3l))
    [all...]

Completed in 119 milliseconds

1 2 3 4 5 6 7 8 9