/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/ |
D | PreferenceLoaderTest.java | 24 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()
|
D | DrawableResourceLoaderTest.java | 17 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/ |
D | IsInstanceOfTest.java | 8 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()
|
D | IsNotTest.java | 8 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/ |
D | SQLiteTestHelper.java | 5 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/ |
D | ResourcesTest.java | 5 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()
|
D | LinkMovementMethodTest.java | 8 import static org.hamcrest.CoreMatchers.instanceOf; 16 assertThat(LinkMovementMethod.getInstance(), instanceOf(LinkMovementMethod.class)); in getInstance_shouldReturnAnInstanceOf_LinkedMovementMethod()
|
D | NfcAdapterTest.java | 8 import static org.hamcrest.CoreMatchers.instanceOf; 15 assertThat(NfcAdapter.getDefaultAdapter(null), instanceOf(NfcAdapter.class)); in getDefaultAdapter_shouldReturnAnAdapter()
|
D | PreferenceCategoryTest.java | 3 import static org.hamcrest.CoreMatchers.instanceOf; 30 assertThat(shadow, instanceOf(ShadowPreferenceGroup.class)); in shouldInheritFromPreferenceGroup()
|
D | FrameLayoutTest.java | 11 import static org.hamcrest.CoreMatchers.instanceOf; 31 assertThat(layoutParams, instanceOf(ViewGroup.MarginLayoutParams.class)); in getLayoutParamsShouldReturnInstanceOfMarginLayoutParams()
|
D | AbsSeekBarTest.java | 11 import static org.hamcrest.CoreMatchers.instanceOf; 21 assertThat(shadow, instanceOf(ShadowProgressBar.class)); in testInheritance()
|
D | LinearLayoutTest.java | 9 import static org.hamcrest.CoreMatchers.instanceOf; 19 assertThat(layoutParams, instanceOf(LinearLayout.LayoutParams.class)); in getLayoutParams_shouldReturnLinearLayoutParams()
|
D | TabActivityTest.java | 11 import static org.hamcrest.CoreMatchers.instanceOf; 31 assertThat(activity.getTabWidget(), instanceOf(TabWidget.class)); in shouldGetTabWidget()
|
D | SslErrorHandlerTest.java | 13 import static org.hamcrest.CoreMatchers.instanceOf; 31 assertThat(shadow, instanceOf(ShadowHandler.class)); in shouldInheritFromShadowHandler()
|
D | PreferenceScreenTest.java | 12 import static org.hamcrest.CoreMatchers.instanceOf; 31 assertThat(shadow, instanceOf(ShadowPreferenceGroup.class)); in shouldInheritFromPreferenceGroup()
|
D | PreferenceActivityTest.java | 4 import static org.hamcrest.CoreMatchers.instanceOf; 41 assertThat(shadow, instanceOf(ShadowListActivity.class)); in shouldInheritFromListActivity()
|
D | RatingBarTest.java | 3 import static org.hamcrest.CoreMatchers.instanceOf; 62 assertThat(shadow, instanceOf(ShadowAbsSeekBar.class)); in testInheritance()
|
D | ListPreferenceTest.java | 13 import static org.hamcrest.CoreMatchers.instanceOf; 33 assertThat(shadow, instanceOf(ShadowDialogPreference.class)); in shouldInheritFromDialogPreference()
|
D | ProgressDialogTest.java | 17 import static org.hamcrest.CoreMatchers.instanceOf; 40 assertThat(shadow, instanceOf(ShadowAlertDialog.class)); in shouldExtendAlertDialog()
|
D | PreferenceGroupTest.java | 4 import static org.hamcrest.CoreMatchers.instanceOf; 50 assertThat(shadow, instanceOf(ShadowPreference.class)); in shouldInheritFromPreference()
|
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/ |
D | Is.java | 8 import static org.hamcrest.core.IsInstanceOf.instanceOf; 73 final Matcher<T> typeMatcher = instanceOf(type); in isA()
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | ConscryptSocketTest.java | 21 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/ |
D | ExpectedException.java | 5 import static org.hamcrest.CoreMatchers.instanceOf; 186 expect(instanceOf(type)); in expect()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/bdd/steps/ |
D | CommentParsingSteps.java | 391 … 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/ |
D | PredicatesTest.java | 555 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()
|