Package com.google.common.truth
Class ClassSubject
Propositions for
Class
subjects.-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.truth.Subject
Subject.HasField
-
Field Summary
Fields inherited from class com.google.common.truth.Subject
failureStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
declaresField
(String fieldName) void
isAssignableFrom
(Class<?> clazz) Fails if this class or interface is not the same as or a superclass or superinterface of the given class or interface.void
isAssignableTo
(Class<?> clazz) Fails if this class or interface is not the same as or a subclass or subinterface of, the given class or interface.Methods inherited from class com.google.common.truth.Subject
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hasField, hashCode, internalCustomName, is, isA, isEqualTo, isInstanceOf, isNotA, isNotEqualTo, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeled, named
-
Constructor Details
-
ClassSubject
ClassSubject(FailureStrategy failureStrategy, Class<?> o)
-
-
Method Details
-
isAssignableFrom
Fails if this class or interface is not the same as or a superclass or superinterface of the given class or interface. -
isAssignableTo
Fails if this class or interface is not the same as or a subclass or subinterface of, the given class or interface. -
declaresField
-