Package com.google.common.truth
Class ClassSubject
Propositions for
Class subjects.- Author:
- Kurt Alfred Kluever
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddeclaresField(String fieldName) voidisAssignableFrom(Class<?> clazz) Fails if this class or interface is not the same as or a superclass or superinterface of the given class or interface.voidisAssignableTo(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
-
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
-