Home
last modified time | relevance | path

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

12

/external/apache-commons-bcel/src/main/java/org/apache/bcel/
DRepository.java183 public static boolean instanceOf( final JavaClass clazz, final JavaClass super_class ) in instanceOf() method in Repository
185 return clazz.instanceOf(super_class); in instanceOf()
194 public static boolean instanceOf( final String clazz, final String super_class ) in instanceOf() method in Repository
196 return instanceOf(lookupClass(clazz), lookupClass(super_class)); in instanceOf()
204 public static boolean instanceOf( final JavaClass clazz, final String super_class ) in instanceOf() method in Repository
206 return instanceOf(clazz, lookupClass(super_class)); in instanceOf()
214 public static boolean instanceOf( final String clazz, final JavaClass super_class ) in instanceOf() method in Repository
216 return instanceOf(lookupClass(clazz), super_class); in instanceOf()
/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/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()
DIsInstanceOf.java70 public static <T> Matcher<T> instanceOf(Class<?> type) { in instanceOf() method in IsInstanceOf
/external/junit/src/main/java/org/junit/rules/
DExpectedException.java5 import static org.hamcrest.CoreMatchers.instanceOf;
186 expect(instanceOf(type)); in expect()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DConscryptSocketTest.java21 import static org.hamcrest.CoreMatchers.instanceOf;
545 assertThat(connection.clientException, instanceOf(SSLHandshakeException.class));
546 assertThat(connection.clientException.getCause(), instanceOf(CertificateException.class));
557 assertThat(connection.clientException, instanceOf(SSLHandshakeException.class));
558 assertThat(connection.clientException.getCause(), instanceOf(CertificateException.class));
618 assertThat(connection.clientException, instanceOf(SSLHandshakeException.class));
621 assertThat(connection.serverException, instanceOf(SSLHandshakeException.class));
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DConscryptSocketTest.java22 import static org.hamcrest.CoreMatchers.instanceOf;
551 assertThat(connection.clientException, instanceOf(SSLHandshakeException.class));
552 assertThat(connection.clientException.getCause(), instanceOf(CertificateException.class));
563 assertThat(connection.clientException, instanceOf(SSLHandshakeException.class));
564 assertThat(connection.clientException.getCause(), instanceOf(CertificateException.class));
624 assertThat(connection.clientException, instanceOf(SSLHandshakeException.class));
627 assertThat(connection.serverException, instanceOf(SSLHandshakeException.class));
/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()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DFixedLengthBlockOutputStreamTest.java140 assertThat(e, IsInstanceOf.instanceOf(ClosedChannelException.class)); in testWriteFailsAfterFLClosedThrowsException()
148 assertThat(e, IsInstanceOf.instanceOf(ClosedChannelException.class)); in testWriteFailsAfterFLClosedThrowsException()
157 assertThat(e, IsInstanceOf.instanceOf(ClosedChannelException.class)); in testWriteFailsAfterFLClosedThrowsException()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/
DZipClassCoverageTest.java54 assertThat(o, IsInstanceOf.instanceOf(clazz)); in testConstantConstructor()
DZipEncodingTest.java171 assertThat(enc, IsInstanceOf.instanceOf(NioZipEncoding.class)); in doSimpleEncodingTest()
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DContextsTest.java21 import static org.hamcrest.core.IsInstanceOf.instanceOf;
223 assertThat(cancellableContext.cancellationCause(), instanceOf(TimeoutException.class)); in statusFromCancelled_TimeoutExceptionShouldMapToDeadlineExceeded()
/external/apache-commons-bcel/src/main/java/org/apache/bcel/generic/
DObjectType.java147 return Repository.instanceOf(this.class_name, superclass.class_name); in subclassOf()
DReferenceType.java90 if (Repository.instanceOf(((ObjectType) this).getClassName(), ((ObjectType) T) in isAssignmentCompatibleWith()
/external/proguard/src/proguard/evaluation/value/
DReferenceValue.java55 public abstract int instanceOf(String otherType, Clazz otherReferencedClass); in instanceOf() method in ReferenceValue
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/
DCoreMatchers.java281 public static <T> org.hamcrest.Matcher<T> instanceOf(java.lang.Class<?> type) { in instanceOf() method in CoreMatchers
282 return org.hamcrest.core.IsInstanceOf.instanceOf(type); in instanceOf()
/external/proguard/src/proguard/evaluation/
DProcessor.java623 int instanceOf = stack.apop().instanceOf(referenceValue.getType(), in visitConstantInstruction() local
626 stack.push(instanceOf == Value.NEVER ? valueFactory.createIntegerValue(0) : in visitConstantInstruction()
627 instanceOf == Value.ALWAYS ? valueFactory.createIntegerValue(1) : in visitConstantInstruction()
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DShadowDecorator.java55 …generator.instanceOf(mutableClass.classType); // __robo_data__, is instance of sam… in decorateMethodPreClassHandler()
/external/mockito/src/test/java/org/mockitoutil/
DConditions.java107 return CoreMatchers.instanceOf(type);
/external/guava/guava/src/com/google/common/util/concurrent/
DServiceManager.java23 import static com.google.common.base.Predicates.instanceOf;
392 .add("services", Collections2.filter(services, not(instanceOf(NoOpService.class)))) in toString()
/external/grpc-grpc-java/context/src/test/java/io/grpc/
DContextTest.java20 import static org.hamcrest.core.IsInstanceOf.instanceOf;
752 assertThat(context.cancellationCause(), instanceOf(TimeoutException.class)); in expiredDeadlineShouldCancelContextImmediately()
759 assertThat(context.cancellationCause(), instanceOf(TimeoutException.class)); in expiredDeadlineShouldCancelContextImmediately()
/external/hamcrest/
DCHANGES.txt69 * distinguish between instanceOf() and any()
/external/guava/guava/src/com/google/common/collect/
DIterators.java24 import static com.google.common.base.Predicates.instanceOf;
675 return (UnmodifiableIterator<T>) filter(unfiltered, instanceOf(type));

12