Package com.google.common.truth
Class IntegerSubject
Propositions for
Integer subjects.-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.truth.Subject
Subject.EqualityCheck, Subject.Factory<SubjectT extends Subject,ActualT> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIntegerSubject(FailureMetadata metadata, Integer integer) Constructor for use by subclasses. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidDeprecated.Methods inherited from class com.google.common.truth.ComparableSubject
isAtLeast, isAtMost, isGreaterThan, isIn, isLessThan, isNotInMethods inherited from class com.google.common.truth.Subject
actual, actualCustomStringRepresentation, actualCustomStringRepresentationForPackageMembersToCall, butWas, check, check, checkNoNeedToDisplayBothValues, equals, fail, fail, fail, failEqualityCheckForEqualsWithoutDescription, failWithActual, failWithActual, failWithActual, failWithActual, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutActual, failWithoutActual, failWithoutActual, failWithoutSubject, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toString, typeDescription
-
Constructor Details
-
IntegerSubject
Constructor for use by subclasses. If you want to create an instance of this class itself, callcheck(...).that(actual).
-
-
Method Details
-
isEquivalentAccordingToCompareTo
Deprecated.UseSubject.isEqualTo(java.lang.Object)instead. Integer comparison is consistent with equality.Description copied from class:ComparableSubjectChecks that the subject is equivalent tootheraccording toComparable.compareTo(T), (i.e., checks thata.comparesTo(b) == 0).Note: Do not use this method for checking object equality. Instead, use
Subject.isEqualTo(Object).- Overrides:
isEquivalentAccordingToCompareToin classComparableSubject<Integer>
-
Subject.isEqualTo(java.lang.Object)instead.