Home
last modified time | relevance | path

Searched refs:assertThat (Results 1 – 25 of 189) sorted by relevance

12345678

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DAbstractCursorTest.java6 import static org.junit.Assert.assertThat;
34 assertThat(cursor.moveToFirst(), equalTo(true)); in testMoveToFirst()
35 assertThat(cursor.getCount(), equalTo(1)); in testMoveToFirst()
40 assertThat(cursor.moveToFirst(), equalTo(false)); in testMoveToFirstEmptyList()
41 assertThat(cursor.getCount(), equalTo(0)); in testMoveToFirstEmptyList()
49 assertThat(cursor.moveToLast(), equalTo(true)); in testMoveToLast()
50 assertThat(cursor.getCount(), equalTo(2)); in testMoveToLast()
55 assertThat(cursor.moveToLast(), equalTo(false)); in testMoveToLastEmptyList()
56 assertThat(cursor.getCount(), equalTo(0)); in testMoveToLastEmptyList()
64 assertThat(cursor.moveToFirst(), equalTo(true)); in testGetPosition()
[all …]
DMediaRecorderTest.java14 import static org.junit.Assert.assertThat;
30 assertThat(shadowMediaRecorder.getAudioChannels(), not(equalTo(2))); in testAudioChannels()
32 assertThat(shadowMediaRecorder.getAudioChannels(), equalTo(2)); in testAudioChannels()
37assertThat(shadowMediaRecorder.getAudioEncoder(), not(equalTo(MediaRecorder.AudioEncoder.AMR_NB))); in testAudioEncoder()
38assertThat(shadowMediaRecorder.getState(), not(equalTo(ShadowMediaRecorder.STATE_DATA_SOURCE_CONFI… in testAudioEncoder()
40assertThat(shadowMediaRecorder.getAudioEncoder(), equalTo(MediaRecorder.AudioEncoder.AMR_NB)); in testAudioEncoder()
41assertThat(shadowMediaRecorder.getState(), equalTo(ShadowMediaRecorder.STATE_DATA_SOURCE_CONFIGURE… in testAudioEncoder()
46 assertThat(shadowMediaRecorder.getAudioEncodingBitRate(), not(equalTo(128000))); in testAudioEncodingBitRate()
48 assertThat(shadowMediaRecorder.getAudioEncodingBitRate(), equalTo(128000)); in testAudioEncodingBitRate()
53 assertThat(shadowMediaRecorder.getAudioSamplingRate(), not(equalTo(22050))); in testAudioSamplingRate()
[all …]
DCameraParametersTest.java18 import static org.junit.Assert.assertThat;
34 assertThat(shadowParameters.getPictureHeight(), not(equalTo(600))); in testPictureSize()
35 assertThat(shadowParameters.getPictureWidth(), not(equalTo(800))); in testPictureSize()
38 assertThat(pictureSize.width, equalTo(800)); in testPictureSize()
39 assertThat(pictureSize.height, equalTo(600)); in testPictureSize()
40 assertThat(shadowParameters.getPictureHeight(), equalTo(600)); in testPictureSize()
41 assertThat(shadowParameters.getPictureWidth(), equalTo(800)); in testPictureSize()
48 assertThat(fpsRange[1], not(equalTo(15))); in testPreviewFpsRange()
49 assertThat(fpsRange[0], not(equalTo(25))); in testPreviewFpsRange()
52 assertThat(fpsRange[1], equalTo(25)); in testPreviewFpsRange()
[all …]
DSQLiteCursorTest.java20 import static org.junit.Assert.assertThat;
60 assertThat(columnNames, notNullValue()); in testGetColumnNamesEmpty()
66 assertThat(cursor.getColumnIndex("id"), equalTo(0)); in testGetColumnIndex()
67 assertThat(cursor.getColumnIndex("name"), equalTo(1)); in testGetColumnIndex()
72 assertThat(cursor.getColumnIndex("Fred"), equalTo(-1)); in testGetColumnIndexNotFound()
79 assertThat(cursor.getColumnIndex("id"), equalTo(0)); in testGetColumnIndexEmpty()
80 assertThat(cursor.getColumnIndex("name"), equalTo(1)); in testGetColumnIndexEmpty()
85 assertThat(cursor.getColumnIndexOrThrow("id"), equalTo(0)); in testGetColumnIndexOrThrow()
86 assertThat(cursor.getColumnIndexOrThrow("name"), equalTo(1)); in testGetColumnIndexOrThrow()
98 assertThat(cursor.getColumnIndexOrThrow("name"), equalTo(1)); in testGetColumnIndexOrThrowEmpty()
[all …]
DRectTest.java10 import static org.junit.Assert.assertThat;
21 assertThat(r.left, is(1)); in constructorSetsCoordinates()
22 assertThat(r.top, is(2)); in constructorSetsCoordinates()
23 assertThat(r.right, is(3)); in constructorSetsCoordinates()
24 assertThat(r.bottom, is(4)); in constructorSetsCoordinates()
31 assertThat(r.left, is(1)); in secondConstructorSetsCoordinates()
32 assertThat(r.top, is(2)); in secondConstructorSetsCoordinates()
33 assertThat(r.right, is(3)); in secondConstructorSetsCoordinates()
34 assertThat(r.bottom, is(4)); in secondConstructorSetsCoordinates()
41 assertThat(r.width(), is(10)); in width()
[all …]
DViewGroupTest.java25 import static org.hamcrest.MatcherAssert.assertThat;
71 assertThat(root.getLayoutAnimationListener(), nullValue()); in testLayoutAnimationListener()
85 assertThat(root.getLayoutAnimationListener(), sameInstance(animationListener)); in testLayoutAnimationListener()
92 assertThat(root.getChildCount(), equalTo(2)); in testRemoveChildAt()
93 assertThat(root.getChildAt(0), sameInstance(child1)); in testRemoveChildAt()
94 assertThat(root.getChildAt(1), sameInstance((View) child3)); in testRemoveChildAt()
96 assertThat(child2.getParent(), nullValue()); in testRemoveChildAt()
105 assertThat(root.getChildAt(0), sameInstance(child1)); in testAddViewAt()
106 assertThat(root.getChildAt(1), sameInstance((View) child3)); in testAddViewAt()
107 assertThat(root.getChildAt(2), sameInstance(child2)); in testAddViewAt()
[all …]
DAnimationTest.java15 import static org.junit.Assert.assertThat;
34 assertThat(listener.wasStartCalled, equalTo(false)); in startShouldInvokeStartCallback()
36 assertThat(listener.wasStartCalled, equalTo(true)); in startShouldInvokeStartCallback()
37 assertThat(listener.wasEndCalled, equalTo(false)); in startShouldInvokeStartCallback()
38 assertThat(listener.wasRepeatCalled, equalTo(false)); in startShouldInvokeStartCallback()
43 assertThat(listener.wasEndCalled, equalTo(false)); in cancelShouldInvokeEndCallback()
45 assertThat(listener.wasStartCalled, equalTo(false)); in cancelShouldInvokeEndCallback()
46 assertThat(listener.wasEndCalled, equalTo(true)); in cancelShouldInvokeEndCallback()
47 assertThat(listener.wasRepeatCalled, equalTo(false)); in cancelShouldInvokeEndCallback()
52 assertThat(listener.wasRepeatCalled, equalTo(false)); in invokeRepeatShouldInvokeRepeatCallback()
[all …]
DDatabaseTestBase.java95 assertThat(cursor.moveToFirst(), equalTo(true)); in testInsertAndQuery()
100 assertThat(stringValueFromDatabase, equalTo(stringColumnValue)); in testInsertAndQuery()
101 assertThat(byteValueFromDatabase, equalTo(byteColumnValue)); in testInsertAndQuery()
118 assertThat(cursor.moveToFirst(), equalTo(true)); in testInsertAndRawQuery()
123 assertThat(stringValueFromDatabase, equalTo(stringColumnValue)); in testInsertAndRawQuery()
124 assertThat(byteValueFromDatabase, equalTo(byteColumnValue)); in testInsertAndRawQuery()
143 assertThat(cursor.moveToFirst(), equalTo(true)); in testInsertOrThrow()
146 assertThat(stringValueFromDatabase, equalTo(stringColumnValue)); in testInsertOrThrow()
147 assertThat(byteValueFromDatabase, equalTo(byteColumnValue)); in testInsertOrThrow()
163 assertThat(cursor.getCount(), equalTo(1)); in testRawQueryCount()
[all …]
DCameraTest.java23 import static org.junit.Assert.assertThat;
44 assertThat(camera, notNullValue()); in testOpen()
49 assertThat(shadowCamera.isLocked(), equalTo(true)); in testUnlock()
51 assertThat(shadowCamera.isLocked(), equalTo(false)); in testUnlock()
57 assertThat(shadowCamera.isLocked(), equalTo(false)); in testReconnect()
59 assertThat(shadowCamera.isLocked(), equalTo(true)); in testReconnect()
65 assertThat(parameters, notNullValue()); in testGetParameters()
66 assertThat(parameters.getSupportedPreviewFormats(), notNullValue()); in testGetParameters()
67 assertThat(parameters.getSupportedPreviewFormats().size(), not(equalTo(0))); in testGetParameters()
73 assertThat(parameters.getPreviewFormat(), equalTo(ImageFormat.NV21)); in testSetParameters()
[all …]
DWebViewTest.java19 import static org.junit.Assert.assertThat;
36 assertThat(shadowOf(webView).getLastLoadedUrl(), equalTo("http://example.com")); in shouldRecordLastLoadedUrl()
43 assertThat(lastLoadData.data, equalTo("<html><body><h1>Hi</h1></body></html>")); in shouldRecordLastLoadedData()
44 assertThat(lastLoadData.mimeType, equalTo("text/html")); in shouldRecordLastLoadedData()
45 assertThat(lastLoadData.encoding, equalTo("utf-8")); in shouldRecordLastLoadedData()
52 assertThat(lastLoadData.baseUrl, equalTo("base/url")); in shouldRecordLastLoadDataWithBaseURL()
53 assertThat(lastLoadData.data, equalTo("<html><body><h1>Hi</h1></body></html>")); in shouldRecordLastLoadDataWithBaseURL()
54 assertThat(lastLoadData.mimeType, equalTo("text/html")); in shouldRecordLastLoadDataWithBaseURL()
55 assertThat(lastLoadData.encoding, equalTo("utf-8")); in shouldRecordLastLoadDataWithBaseURL()
56 assertThat(lastLoadData.historyUrl, equalTo("history/url")); in shouldRecordLastLoadDataWithBaseURL()
[all …]
DMatrixCursorTest.java7 import static org.junit.Assert.assertThat;
35 assertThat(cursor.getCount(), equalTo(2)); in shouldAddRows()
39 assertThat(cursor.getString(0), equalTo("foo")); in shouldAddRows()
40 assertThat(cursor.getLong(1), equalTo(10L)); in shouldAddRows()
41 assertThat(cursor.getFloat(2), equalTo(0.1f)); in shouldAddRows()
45 assertThat(cursor.getString(0), equalTo("baz")); in shouldAddRows()
46 assertThat(cursor.getLong(1), equalTo(20L)); in shouldAddRows()
56 assertThat(cursor.getColumnCount(), equalTo(3)); in shouldDefineColumnNames()
58 assertThat(cursor.getColumnName(0), equalTo("a")); in shouldDefineColumnNames()
59 assertThat(cursor.getColumnName(1), equalTo("b")); in shouldDefineColumnNames()
[all …]
DPreferenceGroupTest.java6 import static org.junit.Assert.assertThat;
50 assertThat(shadow, instanceOf(ShadowPreference.class)); in shouldInheritFromPreference()
55 assertThat( group.getPreferenceCount(), equalTo(0)); in shouldAddPreferences()
58 assertThat( group.addPreference(pref1), equalTo(true)); in shouldAddPreferences()
59 assertThat( group.getPreferenceCount(), equalTo(1)); in shouldAddPreferences()
62 assertThat( group.addPreference(pref1), equalTo(true)); in shouldAddPreferences()
63 assertThat( group.getPreferenceCount(), equalTo(1)); in shouldAddPreferences()
66 assertThat( group.addPreference(pref2), equalTo(true)); in shouldAddPreferences()
67 assertThat( group.getPreferenceCount(), equalTo(2)); in shouldAddPreferences()
72 assertThat( group.getPreferenceCount(), equalTo(0)); in shouldAddItemFromInflater()
[all …]
DPreferenceTest.java8 import static org.junit.Assert.assertThat;
53 assertThat(shadow.getContext(), sameInstance(context)); in shouldConstruct()
54 assertThat(shadow.getAttrs(), sameInstance((AttributeSet)attrs)); in shouldConstruct()
55 assertThat(shadow.getDefStyle(), equalTo(defStyle)); in shouldConstruct()
59 assertThat(shadow.getContext(), sameInstance( context )); in shouldConstruct()
60 assertThat(shadow.getAttrs(), sameInstance((AttributeSet)attrs)); in shouldConstruct()
61 assertThat(shadow.getDefStyle(), equalTo(0)); in shouldConstruct()
65 assertThat(shadow.getContext(), sameInstance( context )); in shouldConstruct()
66 assertThat(shadow.getAttrs(), nullValue()); in shouldConstruct()
67 assertThat(shadow.getDefStyle(), equalTo(0)); in shouldConstruct()
[all …]
DSpannableStringTest.java6 import static org.junit.Assert.assertThat;
33 assertThat(spanStr.toString(), sameInstance(TEST_STRING)); in testToString()
55 assertThat(spans, notNullValue()); in testRemoveSpan()
56 assertThat(spans.length, equalTo(1)); in testRemoveSpan()
57 assertThat((UnderlineSpan) spans[0], sameInstance(s2)); in testRemoveSpan()
68 assertThat(spans, notNullValue()); in testGetSpans()
69 assertThat(spans.length, equalTo(2)); in testGetSpans()
73 assertThat(spans, notNullValue()); in testGetSpans()
74 assertThat(spans.length, equalTo(1)); in testGetSpans()
75 assertThat((URLSpan) spans[0], sameInstance(s1)); in testGetSpans()
[all …]
DContentResolverTest.java59assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues()), equalTo(uri21)); in insert_shouldReturnIncreasingUris()
60assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues()), equalTo(uri22)); in insert_shouldReturnIncreasingUris()
68 assertThat(shadowContentResolver.getInsertStatements().size(), is(1)); in insert_shouldTrackInsertStatements()
69assertThat(shadowContentResolver.getInsertStatements().get(0).getUri(), equalTo(EXTERNAL_CONTENT_U… in insert_shouldTrackInsertStatements()
70assertThat(shadowContentResolver.getInsertStatements().get(0).getContentValues().getAsString("foo"… in insert_shouldTrackInsertStatements()
75 assertThat(shadowContentResolver.getInsertStatements().size(), is(2)); in insert_shouldTrackInsertStatements()
76assertThat(shadowContentResolver.getInsertStatements().get(1).getContentValues().getAsString("hell… in insert_shouldTrackInsertStatements()
84 assertThat(shadowContentResolver.getUpdateStatements().size(), is(1)); in insert_shouldTrackUpdateStatements()
85assertThat(shadowContentResolver.getUpdateStatements().get(0).getUri(), equalTo(EXTERNAL_CONTENT_U… in insert_shouldTrackUpdateStatements()
86assertThat(shadowContentResolver.getUpdateStatements().get(0).getContentValues().getAsString("foo"… in insert_shouldTrackUpdateStatements()
[all …]
DStatFsTest.java4 import static org.junit.Assert.assertThat;
21 assertThat(statsFs.getBlockCount(), equalTo(100)); in shouldRegisterStats()
22 assertThat(statsFs.getFreeBlocks(), equalTo(20)); in shouldRegisterStats()
23 assertThat(statsFs.getAvailableBlocks(), equalTo(10)); in shouldRegisterStats()
24 assertThat(statsFs.getBlockSize(), equalTo(ShadowStatFs.BLOCK_SIZE)); in shouldRegisterStats()
32 assertThat(statsFs.getBlockCount(), equalTo(100)); in shouldRegisterStatsWithFile()
33 assertThat(statsFs.getFreeBlocks(), equalTo(20)); in shouldRegisterStatsWithFile()
34 assertThat(statsFs.getAvailableBlocks(), equalTo(10)); in shouldRegisterStatsWithFile()
35 assertThat(statsFs.getBlockSize(), equalTo(ShadowStatFs.BLOCK_SIZE)); in shouldRegisterStatsWithFile()
41 assertThat(statsFs.getBlockCount(), equalTo(0)); in shouldResetStateBetweenTests()
[all …]
DHandlerTest.java18 import static org.junit.Assert.assertThat;
103 assertThat(scratchRunnable.wasRun, equalTo(true)); in testPostAndIdleMainLooper()
110 assertThat(scratchRunnable.wasRun, equalTo(false)); in postDelayedThenIdleMainLooper_shouldNotRunRunnable()
117 assertThat(scratchRunnable.wasRun, equalTo(true)); in testPostDelayedThenRunMainLooperOneTask()
130 assertThat(scratchRunnable.wasRun, equalTo(false)); in testRemoveCallbacks()
137 assertThat(scratchRunnable.wasRun, equalTo(true)); in testPostDelayedThenRunMainLooperToNextTask_shouldRunOneTask()
149 assertThat(task1.wasRun, equalTo(true)); in testPostDelayedTwiceThenRunMainLooperToNextTask_shouldRunMultipleTasks()
150 assertThat(task2.wasRun, equalTo(true)); in testPostDelayedTwiceThenRunMainLooperToNextTask_shouldRunMultipleTasks()
162 assertThat(task1.wasRun, equalTo(true)); in testPostDelayedTwiceThenRunMainLooperOneTask_shouldRunOnlyOneTask()
163 assertThat(task2.wasRun, equalTo(false)); in testPostDelayedTwiceThenRunMainLooperOneTask_shouldRunOnlyOneTask()
[all …]
DMessageTest.java28 assertThat(m.getData(), equalTo(b)); in testGetData()
38 assertThat(m.peekData(), equalTo(b)); in testPeekData()
46 assertThat(m.getTarget(), equalTo(h)); in testGetTarget()
62 assertThat(m2.arg1, equalTo(m.arg1)); in testCopyFrom()
63 assertThat(m2.arg2, equalTo(m.arg2)); in testCopyFrom()
64 assertThat(m2.obj, equalTo(m.obj)); in testCopyFrom()
65 assertThat(m2.what, equalTo(m.what)); in testCopyFrom()
66 assertThat(m2.getData(), equalTo(m.getData())); in testCopyFrom()
80 assertThat(m.getTarget(), equalTo(h)); in testObtainWithHandler()
89 assertThat(m.getTarget(), equalTo(h)); in testObtainWithHandlerAndWhat()
[all …]
DTranslateAnimationTest.java12 import static org.junit.Assert.assertThat;
28 assertThat(shadow.getFromXType(), equalTo(1)); in animationParametersFromConstructor()
29 assertThat(shadow.getFromXValue(), equalTo(2f)); in animationParametersFromConstructor()
30 assertThat(shadow.getToXType(), equalTo(3)); in animationParametersFromConstructor()
31 assertThat(shadow.getToXValue(), equalTo(4f)); in animationParametersFromConstructor()
32 assertThat(shadow.getFromYType(), equalTo(5)); in animationParametersFromConstructor()
33 assertThat(shadow.getFromYValue(), equalTo(6f)); in animationParametersFromConstructor()
34 assertThat(shadow.getToYType(), equalTo(7)); in animationParametersFromConstructor()
35 assertThat(shadow.getToYValue(), equalTo(8f)); in animationParametersFromConstructor()
43 assertThat(shadow2.getFromXType(), equalTo(defType)); in animationParametersFromConstructor2()
[all …]
DSQLiteStatementTest.java17 import static org.junit.Assert.assertThat;
49 assertThat(pkeyOne, equalTo(1L)); in testExecuteInsert()
50 assertThat(pkeyTwo, equalTo(2L)); in testExecuteInsert()
54 assertThat(resultSet.next(), equalTo(true)); in testExecuteInsert()
55 assertThat(resultSet.getInt(1), equalTo(2)); in testExecuteInsert()
59 assertThat(resultSet.next(), equalTo(true)); in testExecuteInsert()
60 assertThat(resultSet.getInt(1), equalTo(1)); in testExecuteInsert()
61 assertThat(resultSet.getString(2), equalTo("Leg Press")); in testExecuteInsert()
62 assertThat(resultSet.getInt(3), equalTo(0)); in testExecuteInsert()
63 assertThat(resultSet.next(), equalTo(true)); in testExecuteInsert()
[all …]
DWifiConfigurationTest.java11 import static org.junit.Assert.assertThat;
45 assertThat(copy.networkId, equalTo(1)); in shouldCopy()
46 assertThat(copy.SSID, equalTo("SSID")); in shouldCopy()
47 assertThat(copy.BSSID, equalTo("BSSID")); in shouldCopy()
48 assertThat(copy.preSharedKey, equalTo("preSharedKey")); in shouldCopy()
49 assertThat(copy.status, equalTo(666)); in shouldCopy()
50 assertThat(copy.wepTxKeyIndex, equalTo(777)); in shouldCopy()
51 assertThat(copy.priority, equalTo(2)); in shouldCopy()
52 assertThat(copy.hiddenSSID, equalTo(true)); in shouldCopy()
53 assertThat(copy.allowedKeyManagement.get(1), equalTo(true)); in shouldCopy()
[all …]
DContentProviderOperationTest.java5 import static org.junit.Assert.assertThat;
28 assertThat(operation.getUri(), equalTo(URI)); in newInsert()
29 assertThat(shadowOperation.isInsert(), is(true)); in newInsert()
30 assertThat(shadowOperation.isUpdate(), is(false)); in newInsert()
31 assertThat(shadowOperation.isDelete(), is(false)); in newInsert()
32 assertThat(shadowOperation.getValues().size(), is(2)); in newInsert()
33 assertThat(shadowOperation.getValues().get("stringValue").toString(), equalTo("bar")); in newInsert()
34 assertThat(Integer.parseInt(shadowOperation.getValues().get("intValue").toString()), is(5)); in newInsert()
45 assertThat(shadowBuilder.getWithValueBackReference("my_id"), is(0)); in newInsertWithValueBackReference()
46 assertThat(shadowOperation.getWithValueBackReference("my_id"), is(0)); in newInsertWithValueBackReference()
[all …]
/external/robolectric/src/test/java/android/webkit/
DTestWebSettingsTest.java12 import static org.junit.Assert.assertThat;
28 assertThat(webSettings.getAllowFileAccess(), equalTo(true)); in testDefaults()
29 assertThat(webSettings.getBlockNetworkImage(), equalTo(false)); in testDefaults()
30 assertThat(webSettings.getBlockNetworkLoads(), equalTo(false)); in testDefaults()
31 assertThat(webSettings.getBuiltInZoomControls(), equalTo(true)); in testDefaults()
32 assertThat(webSettings.getDatabaseEnabled(), equalTo(false)); in testDefaults()
33 assertThat(webSettings.getDomStorageEnabled(), equalTo(false)); in testDefaults()
34 assertThat(webSettings.getJavaScriptEnabled(), equalTo(false)); in testDefaults()
35 assertThat(webSettings.getLightTouchEnabled(), equalTo(false)); in testDefaults()
36 assertThat(webSettings.getLoadWithOverviewMode(), equalTo(false)); in testDefaults()
[all …]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/org/apache/http/
DTestHttpResponseTest.java13 import static org.junit.Assert.assertThat;
23 assertThat(resp.getFirstHeader("None"), nullValue()); in shouldSupportGetFirstHeader()
24 assertThat(new TestHttpResponse(200, "OK").getFirstHeader("Foo"), nullValue()); in shouldSupportGetFirstHeader()
27 assertThat(resp.getFirstHeader(l).getValue(), equalTo("http://bar.com")); in shouldSupportGetFirstHeader()
38 assertThat(resp.getLastHeader("None"), nullValue()); in shouldSupportGetLastHeader()
41 assertThat(resp.getLastHeader(l).getValue(), equalTo("http://zombo.com")); in shouldSupportGetLastHeader()
51 assertThat(resp.containsHeader("X-Zombo-Com"), is(true)); in shouldSupportContainsHeader()
52 assertThat(resp.containsHeader("Location"), is(false)); in shouldSupportContainsHeader()
64 assertThat(it.hasNext(), is(true)); in shouldSupportHeaderIterator()
65 assertThat(it.nextHeader().getValue(), equalTo("http://bar.com")); in shouldSupportHeaderIterator()
[all …]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/content/
DTestSharedPreferencesTest.java46 assertThat(anotherSharedPreferences.getFloat("float", 666f), equalTo(1.1f)); in commit_shouldStoreValues()
47 assertThat(anotherSharedPreferences.getInt("int", 666), equalTo(2)); in commit_shouldStoreValues()
48 assertThat(anotherSharedPreferences.getLong("long", 666l), equalTo(3l)); in commit_shouldStoreValues()
49 assertThat(anotherSharedPreferences.getString("string", "wacka wa"), equalTo("foobar")); in commit_shouldStoreValues()
56 assertThat(all.size(), equalTo(5)); in getAll_shouldReturnAllValues()
57 assertThat((Integer) all.get("int"), equalTo(2)); in getAll_shouldReturnAllValues()
74 assertThat(anotherSharedPreferences.getFloat("float", 666f), equalTo(1.1f)); in commit_shouldRemoveValuesThenSetValues()
75 assertThat(anotherSharedPreferences.getInt("int", 666), equalTo(2)); in commit_shouldRemoveValuesThenSetValues()
76 assertThat(anotherSharedPreferences.getLong("long", 666l), equalTo(3l)); in commit_shouldRemoveValuesThenSetValues()
77 assertThat(anotherSharedPreferences.getString("string", "wacka wa"), equalTo("foobar")); in commit_shouldRemoveValuesThenSetValues()
[all …]

12345678