/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
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"));
|
SpannableStringTest.java | 3 import static org.hamcrest.CoreMatchers.equalTo; 56 assertThat(spans.length, equalTo(1)); 69 assertThat(spans.length, equalTo(2)); 74 assertThat(spans.length, equalTo(1)); 79 assertThat(spans.length, equalTo(1)); 84 assertThat(spans.length, equalTo(1)); 89 assertThat(spans.length, equalTo(1)); 98 assertThat(spanStr.getSpanStart(s1), equalTo(-1)); 99 assertThat(spanStr.getSpanStart(s2), equalTo(-1)); 102 assertThat(spanStr.getSpanStart(s1), equalTo(0)) [all...] |
SignatureTest.java | 3 import static org.hamcrest.CoreMatchers.equalTo; 44 equalTo(new Signature(new byte[] { (byte) 0xAC }))); 46 not(equalTo(new Signature(new byte[] { (byte) 0xDE })))); 48 equalTo(new Signature(new byte[] { (byte) 0xAC }).hashCode())); 50 not(equalTo(new Signature(new byte[] { (byte) 0xDE }).hashCode())));
|
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));
|
CameraTest.java | 18 import static org.hamcrest.CoreMatchers.equalTo; 49 assertThat(shadowCamera.isLocked(), equalTo(true)); 51 assertThat(shadowCamera.isLocked(), equalTo(false)); 57 assertThat(shadowCamera.isLocked(), equalTo(false)); 59 assertThat(shadowCamera.isLocked(), equalTo(true)); 67 assertThat(parameters.getSupportedPreviewFormats().size(), not(equalTo(0))); 73 assertThat(parameters.getPreviewFormat(), equalTo(ImageFormat.NV21)); 76 assertThat(camera.getParameters().getPreviewFormat(), equalTo(ImageFormat.JPEG)); 88 assertThat(shadowCamera.isPreviewing(), equalTo(false)); 90 assertThat(shadowCamera.isPreviewing(), equalTo(true)) [all...] |
ContentResolverTest.java | 5 import static org.hamcrest.CoreMatchers.equalTo; 59 assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues()), equalTo(uri21)); 60 assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues()), equalTo(uri22)); 69 assertThat(shadowContentResolver.getInsertStatements().get(0).getUri(), equalTo(EXTERNAL_CONTENT_URI)); 70 assertThat(shadowContentResolver.getInsertStatements().get(0).getContentValues().getAsString("foo"), equalTo("bar")); 76 assertThat(shadowContentResolver.getInsertStatements().get(1).getContentValues().getAsString("hello"), equalTo("world")); 85 assertThat(shadowContentResolver.getUpdateStatements().get(0).getUri(), equalTo(EXTERNAL_CONTENT_URI)); 86 assertThat(shadowContentResolver.getUpdateStatements().get(0).getContentValues().getAsString("foo"), equalTo("bar")); 87 assertThat(shadowContentResolver.getUpdateStatements().get(0).getWhere(), equalTo("robolectric")); 88 assertThat(shadowContentResolver.getUpdateStatements().get(0).getSelectionArgs(), equalTo(new String[] { "awesome" })) [all...] |
PeriodicSyncTest.java | 10 import static org.hamcrest.CoreMatchers.equalTo; 25 assertThat(sync.authority, equalTo("auth")); 26 assertThat(sync.period, equalTo(120l));
|
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" }));
|
H2DatabaseTest.java | 9 import static org.hamcrest.CoreMatchers.equalTo; 18 equalTo(H2Map.class.getName()));
|
IntentFilterAuthorityEntryTest.java | 8 import static org.hamcrest.CoreMatchers.equalTo; 21 assertThat(authorityEntry.getPort(), equalTo(-1));
|
SQLiteOpenHelperTest.java | 13 import static org.hamcrest.CoreMatchers.equalTo; 77 assertThat(database.isOpen(), equalTo(true)); 79 assertThat(database.isOpen(), equalTo(false)); 84 assertThat(helper.onCreateCalled, equalTo(true)); 89 assertThat(helper.onCreateCalled, equalTo(false)); 94 assertThat(database.isOpen(), equalTo(true)); 95 assertThat(helper.onOpenCalled, equalTo(true)); 96 assertThat(helper.onUpgradeCalled, equalTo(false));
|
VideoViewTest.java | 3 import static org.hamcrest.CoreMatchers.equalTo; 56 assertThat(shadowVideoView.getVideoPath(), equalTo("video.mp4")); 65 assertThat(shadowVideoView.getVideoURIString(), equalTo("video.mp4")); 72 assertThat(view.isPlaying(), equalTo(false)); 74 assertThat(view.isPlaying(), equalTo(true)); 76 assertThat(view.isPlaying(), equalTo(false)); 83 assertThat(shadowVideoView.getCurrentVideoState(), equalTo(ShadowVideoView.START)); 90 assertThat(shadowVideoView.getCurrentVideoState(), equalTo(ShadowVideoView.STOP)); 98 assertThat(shadowVideoView.getPrevVideoState(), equalTo(ShadowVideoView.START)); 99 assertThat(shadowVideoView.getCurrentVideoState(), equalTo(ShadowVideoView.SUSPEND)) [all...] |
WifiManagerTest.java | 21 import static org.hamcrest.CoreMatchers.equalTo; 69 assertThat(lastEnabled, equalTo(new Pair<Integer, Boolean>(666, true))); 74 assertThat(lastEnabled, equalTo(new Pair<Integer, Boolean>(777, false))); 89 assertThat(networkId, equalTo(0)); 91 assertThat(wifiConfiguration.networkId, equalTo(-1)); 92 assertThat(wifiManager.getConfiguredNetworks().get(0).networkId, equalTo(0)); 95 assertThat(wifiManager.addNetwork(anotherConfig), equalTo(1)); 96 assertThat(anotherConfig.networkId, equalTo(-1)); 97 assertThat(wifiManager.getConfiguredNetworks().get(1).networkId, equalTo(1)); 109 assertThat(networkId, equalTo(1)) [all...] |
AccountManagerTest.java | 4 import static org.hamcrest.CoreMatchers.equalTo; 48 assertThat(future.isCancelled(), equalTo(false)); 50 assertThat(future.isCancelled(), equalTo(true)); 58 assertThat(future.isDone(), equalTo(false)); 60 assertThat(future.isDone(), equalTo(true)); 68 assertThat(future.isDone(), equalTo(false)); 70 assertThat(future.isDone(), equalTo(true)); 85 assertThat(result.containsKey(AccountManager.KEY_AUTHTOKEN), equalTo(true)); 86 assertThat(result.containsKey(AccountManager.KEY_ACCOUNT_NAME), equalTo(true)); 87 assertThat(result.containsKey(AccountManager.KEY_ACCOUNT_TYPE), equalTo(true)) [all...] |
ConfigurationTest.java | 14 import static org.hamcrest.CoreMatchers.equalTo; 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 ) );
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/ |
SQLite_Test.java | 11 import static org.hamcrest.CoreMatchers.equalTo; 32 assertThat(insertString.sql, equalTo("INSERT INTO table_name (float_value, byte_data, name, int_value) VALUES (?, ?, ?, ?);")); 39 assertThat(insertString.sql, equalTo("UPDATE table_name SET float_value=?, byte_data=?, name=?, int_value=? WHERE id='1234';")); 46 assertThat(deleteString, equalTo("DELETE FROM table_name WHERE id='1234';")); 52 assertThat(whereClause, equalTo("id='1234' AND name='Chuck' AND int_value='33'")); 59 assertThat(columnValuesClause.sql, equalTo("(float_value, byte_data, name, int_value) VALUES (?, ?, ?, ?)")); 67 assertThat(columnAssignmentsClause.sql, equalTo("float_value=?, byte_data=?, name=?, int_value=?"));
|
SchedulerTest.java | 6 import static org.hamcrest.CoreMatchers.equalTo; 26 assertThat(scheduler.advanceBy(0), equalTo(true)); 29 assertThat(scheduler.advanceBy(0), equalTo(false)); 32 assertThat(scheduler.advanceBy(1000), equalTo(true)); 113 assertThat(scheduler.enqueuedTaskCount(), equalTo(3)); 115 assertThat(scheduler.enqueuedTaskCount(), equalTo(1)); 117 assertThat(runnable.wasRun, equalTo(false)); 127 assertThat(runnable.wasRun, equalTo(false)); 131 assertThat(runnable.wasRun, equalTo(true)); 141 assertThat(runnable1.wasRun, equalTo(false)) [all...] |
H2Map_TypeForwardOnlyTest.java | 3 import static org.hamcrest.CoreMatchers.equalTo; 28 assertThat(map.getResultSetType(),equalTo(ResultSet.TYPE_FORWARD_ONLY));
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/org/apache/http/ |
TestHttpResponseTest.java | 12 import static org.hamcrest.core.IsEqual.equalTo; 27 assertThat(resp.getFirstHeader(l).getValue(), equalTo("http://bar.com")); 41 assertThat(resp.getLastHeader(l).getValue(), equalTo("http://zombo.com")); 65 assertThat(it.nextHeader().getValue(), equalTo("http://bar.com")); 66 assertThat(it.nextHeader().getValue(), equalTo("http://zombo.com")); 81 assertThat(it.nextHeader().getValue(), equalTo("http://bar.com")); 83 assertThat(it.nextHeader().getValue(), equalTo("http://foo.com")); 99 assertThat(headers[0].getValue(), CoreMatchers.equalTo("http://bar.com")); 100 assertThat(headers[1].getValue(), CoreMatchers.equalTo("http://foo.com")); 109 assertThat(response.getHeaders("foo")[0].getValue(), CoreMatchers.equalTo("bar")) [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/ |
TemporaryBindingsTest.java | 10 import static org.hamcrest.CoreMatchers.equalTo; 18 assertThat(shadowOf(new View(null)).getClass().getSimpleName(), equalTo(ShadowView.class.getSimpleName())); 23 equalTo(TemporaryShadowView.class.getSimpleName())); 28 assertThat(shadowOf(new View(null)).getClass().getSimpleName(), equalTo(ShadowView.class.getSimpleName())); 33 equalTo(TemporaryShadowView.class.getSimpleName()));
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/ |
DimenResourceLoaderTest.java | 4 import static org.hamcrest.CoreMatchers.equalTo; 28 equalTo(8.0f)); 30 equalTo(20.0f)); 32 equalTo(15.0f)); 34 equalTo(5.0f));
|
PluralResourceLoaderTest.java | 4 import static org.hamcrest.CoreMatchers.equalTo; 28 assertThat(pluralResourceLoader.getValue(R.plurals.beer, 0), equalTo("Howdy")); 29 assertThat(pluralResourceLoader.getValue(R.plurals.beer, 1), equalTo("One beer")); 30 assertThat(pluralResourceLoader.getValue(R.plurals.beer, 2), equalTo("Two beers")); 31 assertThat(pluralResourceLoader.getValue(R.plurals.beer, 3), equalTo("%d beers, yay!"));
|
StringResourceLoaderTest.java | 8 import static org.hamcrest.CoreMatchers.equalTo; 23 assertThat(stringResourceLoader.getValue(R.string.hello), equalTo("Hello")); 24 assertThat(stringResourceLoader.getValue(R.string.howdy), equalTo("Howdy")); 29 assertThat(stringResourceLoader.getValue(R.string.some_html), equalTo("Hello, world")); 34 assertThat(stringResourceLoader.getValue(R.string.greeting), equalTo("Howdy"));
|
MenuResourceLoaderTest.java | 5 import static org.hamcrest.CoreMatchers.equalTo; 26 assertThat(testMenu.size(), equalTo(4)); 36 assertThat(mi.getSubMenu().size(), equalTo(2) ); 37 assertThat(mi.getSubMenu().getItem(1).getTitle() + "", equalTo("Test menu item 3") );
|
/external/chromium_org/third_party/WebKit/Source/core/animation/ |
AnimatableNeutral.h | 53 virtual bool equalTo(const AnimatableValue* value) const OVERRIDE
|