Home
last modified time | relevance | path

Searched refs:instanceOf (Results 1 – 25 of 50) sorted by relevance

12

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/
DPreferenceLoaderTest.java24 import static org.hamcrest.CoreMatchers.instanceOf;
71 assertThat(screen.getPreference(0), instanceOf(PreferenceCategory.class)); in assertThatScreenMatchesExpected()
72 …assertThat(((PreferenceCategory)screen.getPreference(0)).getPreference(0), instanceOf(Preference.c… in assertThatScreenMatchesExpected()
74 assertThat(screen.getPreference(1), instanceOf(CheckBoxPreference.class)); in assertThatScreenMatchesExpected()
75 assertThat(screen.getPreference(2), instanceOf(EditTextPreference.class)); in assertThatScreenMatchesExpected()
76 assertThat(screen.getPreference(3), instanceOf(ListPreference.class)); in assertThatScreenMatchesExpected()
77 assertThat(screen.getPreference(4), instanceOf(Preference.class)); in assertThatScreenMatchesExpected()
78 assertThat(screen.getPreference(5), instanceOf(RingtonePreference.class)); in assertThatScreenMatchesExpected()
DDrawableResourceLoaderTest.java17 import static org.hamcrest.CoreMatchers.instanceOf;
103 assertThat( drawable, instanceOf( LayerDrawable.class ) ); in testLayerDrawable()
109 assertThat( drawable, instanceOf( StateListDrawable.class ) ); in testStateListDrawable()
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
DIsInstanceOfTest.java8 import static org.hamcrest.core.IsInstanceOf.instanceOf;
14 Matcher<?> matcher = instanceOf(Number.class); in copesWithNullsAndUnknownTypes()
22 final Matcher<Object> matcher = instanceOf(Number.class); in evaluatesToTrueIfArgumentIsInstanceOfASpecificClass()
32 assertDescription("an instance of java.lang.Number", instanceOf(Number.class)); in hasAReadableDescription()
37 …assertMismatchDescription("\"some text\" is a java.lang.String", instanceOf(Number.class), "some t… in describesActualClassInMismatchMessage()
55 Integer anInteger = (Integer)with(instanceOf(Integer.class)); in instanceOfRequiresACastToReturnTheCorrectTypeForUseInJMock()
DIsNotTest.java8 import static org.hamcrest.core.IsInstanceOf.instanceOf;
39 assertDescription("not an instance of java.lang.String", not(instanceOf(String.class))); in usesDescriptionOfNegatedMatcherWithPrefix()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/
DSQLiteTestHelper.java5 import static org.hamcrest.CoreMatchers.instanceOf;
11 assertThat(colValues.get(0), instanceOf(Float.class)); in verifyColumnValues()
12 assertThat(colValues.get(1), instanceOf(byte[].class)); in verifyColumnValues()
13 assertThat(colValues.get(2), instanceOf(String.class)); in verifyColumnValues()
14 assertThat(colValues.get(3), instanceOf(Integer.class)); in verifyColumnValues()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DResourcesTest.java5 import static org.hamcrest.CoreMatchers.instanceOf;
71 … assertThat( resources.getDrawable( TestR.anim.test_anim_1 ), instanceOf( BitmapDrawable.class ) ); in testGetDrawableNullRClass()
80 …assertThat( resources.getDrawable( TestR.anim.test_anim_1 ), instanceOf( AnimationDrawable.class )… in testGetAnimationDrawable()
96 …assertThat( resources.getDrawable( TestR.color.test_color_1 ), instanceOf( ColorDrawable.class ) )… in testGetColorDrawable()
105 …assertThat( resources.getDrawable( TestR.drawable.test_drawable_1 ), instanceOf( BitmapDrawable.cl… in testGetBitmapDrawable()
113 …assertThat( resources.getDrawable( R.drawable.nine_patch_drawable ), instanceOf( NinePatchDrawable… in testGetNinePatchDrawable()
122 …assertThat( resources.getDrawable( Integer.MAX_VALUE ), instanceOf( BitmapDrawable.class ) ); … in testGetBitmapDrawableForUnknownId()
DLinkMovementMethodTest.java8 import static org.hamcrest.CoreMatchers.instanceOf;
16 assertThat(LinkMovementMethod.getInstance(), instanceOf(LinkMovementMethod.class)); in getInstance_shouldReturnAnInstanceOf_LinkedMovementMethod()
DNfcAdapterTest.java8 import static org.hamcrest.CoreMatchers.instanceOf;
15 assertThat(NfcAdapter.getDefaultAdapter(null), instanceOf(NfcAdapter.class)); in getDefaultAdapter_shouldReturnAnAdapter()
DPreferenceCategoryTest.java3 import static org.hamcrest.CoreMatchers.instanceOf;
30 assertThat(shadow, instanceOf(ShadowPreferenceGroup.class)); in shouldInheritFromPreferenceGroup()
DFrameLayoutTest.java11 import static org.hamcrest.CoreMatchers.instanceOf;
31 assertThat(layoutParams, instanceOf(ViewGroup.MarginLayoutParams.class)); in getLayoutParamsShouldReturnInstanceOfMarginLayoutParams()
DAbsSeekBarTest.java11 import static org.hamcrest.CoreMatchers.instanceOf;
21 assertThat(shadow, instanceOf(ShadowProgressBar.class)); in testInheritance()
DLinearLayoutTest.java9 import static org.hamcrest.CoreMatchers.instanceOf;
19 assertThat(layoutParams, instanceOf(LinearLayout.LayoutParams.class)); in getLayoutParams_shouldReturnLinearLayoutParams()
DTabActivityTest.java11 import static org.hamcrest.CoreMatchers.instanceOf;
31 assertThat(activity.getTabWidget(), instanceOf(TabWidget.class)); in shouldGetTabWidget()
DSslErrorHandlerTest.java13 import static org.hamcrest.CoreMatchers.instanceOf;
31 assertThat(shadow, instanceOf(ShadowHandler.class)); in shouldInheritFromShadowHandler()
DPreferenceScreenTest.java12 import static org.hamcrest.CoreMatchers.instanceOf;
31 assertThat(shadow, instanceOf(ShadowPreferenceGroup.class)); in shouldInheritFromPreferenceGroup()
DPreferenceActivityTest.java4 import static org.hamcrest.CoreMatchers.instanceOf;
41 assertThat(shadow, instanceOf(ShadowListActivity.class)); in shouldInheritFromListActivity()
DRatingBarTest.java3 import static org.hamcrest.CoreMatchers.instanceOf;
62 assertThat(shadow, instanceOf(ShadowAbsSeekBar.class)); in testInheritance()
DListPreferenceTest.java13 import static org.hamcrest.CoreMatchers.instanceOf;
33 assertThat(shadow, instanceOf(ShadowDialogPreference.class)); in shouldInheritFromDialogPreference()
DProgressDialogTest.java17 import static org.hamcrest.CoreMatchers.instanceOf;
40 assertThat(shadow, instanceOf(ShadowAlertDialog.class)); in shouldExtendAlertDialog()
DPreferenceGroupTest.java4 import static org.hamcrest.CoreMatchers.instanceOf;
50 assertThat(shadow, instanceOf(ShadowPreference.class)); in shouldInheritFromPreference()
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
DIs.java8 import static org.hamcrest.core.IsInstanceOf.instanceOf;
73 final Matcher<T> typeMatcher = instanceOf(type); in isA()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DConscryptSocketTest.java21 import static org.hamcrest.CoreMatchers.instanceOf;
532 assertThat(connection.clientException, instanceOf(SSLHandshakeException.class));
533 assertThat(connection.clientException.getCause(), instanceOf(CertificateException.class));
544 assertThat(connection.clientException, instanceOf(SSLHandshakeException.class));
545 assertThat(connection.clientException.getCause(), instanceOf(CertificateException.class));
605 assertThat(connection.clientException, instanceOf(SSLHandshakeException.class));
608 assertThat(connection.serverException, instanceOf(SSLHandshakeException.class));
/external/junit/src/main/java/org/junit/rules/
DExpectedException.java5 import static org.hamcrest.CoreMatchers.instanceOf;
186 expect(instanceOf(type)); in expect()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/bdd/steps/
DCommentParsingSteps.java391 … assertThat(commentUnderTest.getParentNode().get(), instanceOf(ClassOrInterfaceDeclaration.class)); in thenCommentInCompilationUnitParentIsClassOrInterfaceDeclaration()
397 …assertThat(commentUnderTest.getCommentedNode().get(), instanceOf(ClassOrInterfaceDeclaration.class… in thenCommentInCompilationUnitCommentedNodeIsClassOrInterfaceDeclaration()
403 assertThat(commentUnderTest.getCommentedNode().get(), instanceOf(FieldDeclaration.class)); in thenCommentInCompilationUnitCommentedNodeIsFieldDeclaration()
409 assertThat(commentUnderTest.getCommentedNode().get(), instanceOf(IntegerLiteralExpr.class)); in thenCommentInCompilationUnitCommentedNodeIsIntegerLiteralExpr()
415 assertThat(commentUnderTest.getCommentedNode().get(), instanceOf(ExpressionStmt.class)); in thenCommentInCompilationUnitCommentedNodeIsIntegerExpressionStmt()
421 assertThat(commentUnderTest.getCommentedNode().get(), instanceOf(PrimitiveType.class)); in thenCommentInCompilationUnitCommentedNodeIsIntegerPrimitiveType()
/external/guava/guava-tests/test/com/google/common/base/
DPredicatesTest.java555 Predicate<Object> isInteger = Predicates.instanceOf(Integer.class); in testIsInstanceOf_apply()
565 Predicate<Object> isNumber = Predicates.instanceOf(Number.class); in testIsInstanceOf_subclass()
575 Predicate<Object> isComparable = Predicates.instanceOf(Comparable.class); in testIsInstanceOf_interface()
587 Predicates.instanceOf(Integer.class), in testIsInstanceOf_equality()
588 Predicates.instanceOf(Integer.class)) in testIsInstanceOf_equality()
589 .addEqualityGroup(Predicates.instanceOf(Number.class)) in testIsInstanceOf_equality()
590 .addEqualityGroup(Predicates.instanceOf(Float.class)) in testIsInstanceOf_equality()
596 checkSerialization(Predicates.instanceOf(Integer.class)); in testIsInstanceOf_serialization()

12