Home
last modified time | relevance | path

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

12345678910>>...23

/external/robolectric/v1/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 …]
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 …]
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 …]
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 …]
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/
DBasicTest.java23 import static com.google.common.truth.Truth.assertThat;
50 assertThat(basicComponent.getByte()).isEqualTo(BOUND_BYTE); in primitives()
51 assertThat(basicComponent.getChar()).isEqualTo(BOUND_CHAR); in primitives()
52 assertThat(basicComponent.getShort()).isEqualTo(BOUND_SHORT); in primitives()
53 assertThat(basicComponent.getInt()).isEqualTo(BOUND_INT); in primitives()
54 assertThat(basicComponent.getLong()).isEqualTo(BOUND_LONG); in primitives()
55 assertThat(basicComponent.getBoolean()).isEqualTo(BOUND_BOOLEAN); in primitives()
56 assertThat(basicComponent.getFloat()).isEqualTo(BOUND_FLOAT); in primitives()
57 assertThat(basicComponent.getDouble()).isEqualTo(BOUND_DOUBLE); in primitives()
61 assertThat(basicComponent.getBoxedByte()).isEqualTo(new Byte(BOUND_BYTE)); in boxedPrimitives()
[all …]
DGenericTest.java28 import static com.google.common.truth.Truth.assertThat;
36 assertThat(component).isNotNull(); in testGenericComponentCreate()
41 assertThat(component.referencesGeneric().genericA.t).isNotNull(); in testGenericSimpleReferences()
47 assertThat(doubleA.a).isNotNull(); in testGenericDoubleReferences()
48 assertThat(doubleA.a2).isNotNull(); in testGenericDoubleReferences()
49 assertThat(doubleA.t).isNotNull(); in testGenericDoubleReferences()
50 assertThat(doubleA.t2).isNotNull(); in testGenericDoubleReferences()
53 assertThat(doubleB.a).isNotNull(); in testGenericDoubleReferences()
54 assertThat(doubleB.a2).isNotNull(); in testGenericDoubleReferences()
55 assertThat(doubleB.t).isNotNull(); in testGenericDoubleReferences()
[all …]
/external/mockito/src/test/java/org/mockito/internal/matchers/
DInstanceOfTest.java8 import static org.assertj.core.api.Assertions.assertThat;
14 assertThat(new InstanceOf(Object.class).toString()).contains("isA") in should_describe_the_matcher()
16 assertThat(new InstanceOf(Object[].class).toString()).contains("isA") in should_describe_the_matcher()
18assertThat(new InstanceOf(Object.class, "matches something").toString()).isEqualTo("matches someth… in should_describe_the_matcher()
23 assertThat(new InstanceOf(Object.class).matches(new Object())).isTrue(); in should_check_instance_type()
24 assertThat(new InstanceOf(Object.class).matches(new ArrayList())).isTrue(); in should_check_instance_type()
25 assertThat(new InstanceOf(List.class).matches(new ArrayList())).isTrue(); in should_check_instance_type()
26 assertThat(new InstanceOf(List.class).matches(new Object())).isFalse(); in should_check_instance_type()
31 assertThat(new InstanceOf(int.class).matches(1000)).isTrue(); in should_check_for_primitive_wrapper_types()
32 assertThat(new InstanceOf(Integer.class).matches(1000)).isTrue(); in should_check_for_primitive_wrapper_types()
[all …]
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/builder/
DBuilderTest.java22 import static com.google.common.truth.Truth.assertThat;
45 assertThat(component.s()).isEqualTo("sam"); in interfaceBuilder()
46 assertThat(component.i()).isEqualTo(1); in interfaceBuilder()
47 assertThat(component.d()).isWithin(0).of(4.2d); in interfaceBuilder()
48 assertThat(component.f()).isEqualTo(5.5f); in interfaceBuilder()
49 assertThat(component.l()).isEqualTo(6L); in interfaceBuilder()
69 assertThat(component.s()).isEqualTo("sam"); in abstractClassBuilder()
70 assertThat(component.i()).isEqualTo(1); in abstractClassBuilder()
71 assertThat(component.d()).isWithin(0).of(4.2d); in abstractClassBuilder()
72 assertThat(component.f()).isEqualTo(5.5f); in abstractClassBuilder()
[all …]
/external/mockito/src/test/java/org/mockito/internal/util/
DPrimitivesTest.java9 import static org.assertj.core.api.Assertions.assertThat;
41 assertThat(Primitives.defaultValue(boolean.class)).isFalse(); in should_default_values_for_primitive()
42 assertThat(Primitives.defaultValue(char.class)).isEqualTo('\u0000'); in should_default_values_for_primitive()
43 assertThat(Primitives.defaultValue(byte.class)).isEqualTo((byte) 0); in should_default_values_for_primitive()
44 assertThat(Primitives.defaultValue(short.class)).isEqualTo((short) 0); in should_default_values_for_primitive()
45 assertThat(Primitives.defaultValue(int.class)).isEqualTo(0); in should_default_values_for_primitive()
46 assertThat(Primitives.defaultValue(long.class)).isEqualTo(0L); in should_default_values_for_primitive()
47 assertThat(Primitives.defaultValue(float.class)).isEqualTo(0.0F); in should_default_values_for_primitive()
48 assertThat(Primitives.defaultValue(double.class)).isEqualTo(0.0D); in should_default_values_for_primitive()
53 assertThat(Primitives.defaultValue(Boolean.class)).isFalse(); in should_default_values_for_wrapper()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DSplitterTest.java19 import static com.google.common.truth.Truth.assertThat;
54 assertThat(letters).iteratesAs("a", "b", "c"); in testCharacterSimpleSplit()
68 assertThat(letters).iteratesAs("a", "b", "c"); in testCharacterSimpleSplitToList()
80 assertThat(letters).iteratesAs("a,b,c"); in testCharacterSimpleSplitWithNoDelimiter()
86 assertThat(letters).iteratesAs("a", "", "b", "c"); in testCharacterSplitWithDoubleDelimiter()
92 assertThat(letters).iteratesAs("a", "", " b", "c"); in testCharacterSplitWithDoubleDelimiterAndSpace()
98 assertThat(letters).iteratesAs("a", "b", "c", ""); in testCharacterSplitWithTrailingDelimiter()
104 assertThat(letters).iteratesAs("", "a", "b", "c"); in testCharacterSplitWithLeadingDelimiter()
110 assertThat(testCharacteringMotto).iteratesAs( in testCharacterSplitWithMulitpleLetters()
118 assertThat(testCharacteringMotto).iteratesAs( in testCharacterSplitWithMatcherDelimiter()
[all …]
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DGenericMetadataSupportTest.java15 import static org.assertj.core.api.Assertions.assertThat;
55 assertThat(genericMetadata.rawType()).isEqualTo(GenericsSelfReference.class); in typeVariable_of_self_type()
60 assertThat(inferFrom(ListOfAnyNumbers.class).rawType()).isEqualTo(ListOfAnyNumbers.class); in can_get_raw_type_from_Class()
61 assertThat(inferFrom(ListOfNumbers.class).rawType()).isEqualTo(ListOfNumbers.class); in can_get_raw_type_from_Class()
62 assertThat(inferFrom(GenericsNest.class).rawType()).isEqualTo(GenericsNest.class); in can_get_raw_type_from_Class()
63 assertThat(inferFrom(StringList.class).rawType()).isEqualTo(StringList.class); in can_get_raw_type_from_Class()
68assertThat(inferFrom(ListOfAnyNumbers.class.getGenericInterfaces()[0]).rawType()).isEqualTo(List.c… in can_get_raw_type_from_ParameterizedType()
69assertThat(inferFrom(ListOfNumbers.class.getGenericInterfaces()[0]).rawType()).isEqualTo(List.clas… in can_get_raw_type_from_ParameterizedType()
70assertThat(inferFrom(GenericsNest.class.getGenericInterfaces()[0]).rawType()).isEqualTo(Map.class); in can_get_raw_type_from_ParameterizedType()
71assertThat(inferFrom(StringList.class.getGenericSuperclass()).rawType()).isEqualTo(ArrayList.class… in can_get_raw_type_from_ParameterizedType()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DSplitterTest.java19 import static com.google.common.truth.Truth.assertThat;
51 assertThat(letters).iteratesAs("a", "b", "c"); in testCharacterSimpleSplit()
65 assertThat(letters).iteratesAs("a", "b", "c"); in testCharacterSimpleSplitToList()
77 assertThat(letters).iteratesAs("a,b,c"); in testCharacterSimpleSplitWithNoDelimiter()
83 assertThat(letters).iteratesAs("a", "", "b", "c"); in testCharacterSplitWithDoubleDelimiter()
89 assertThat(letters).iteratesAs("a", "", " b", "c"); in testCharacterSplitWithDoubleDelimiterAndSpace()
95 assertThat(letters).iteratesAs("a", "b", "c", ""); in testCharacterSplitWithTrailingDelimiter()
101 assertThat(letters).iteratesAs("", "a", "b", "c"); in testCharacterSplitWithLeadingDelimiter()
107 assertThat(testCharacteringMotto).iteratesAs( in testCharacterSplitWithMulitpleLetters()
115 assertThat(testCharacteringMotto).iteratesAs( in testCharacterSplitWithMatcherDelimiter()
[all …]
/external/robolectric/v1/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/v1/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 …]

12345678910>>...23