public class IntegerSubject extends ComparableSubject<IntegerSubject,Integer>
Integer
subjects.failureStrategy
Constructor and Description |
---|
IntegerSubject(FailureStrategy failureStrategy,
Integer integer) |
Modifier and Type | Method and Description |
---|---|
void |
isEqualTo(long other) |
void |
isEqualTo(Object other)
Fails if the subject is not equal to the given object.
|
void |
isEquivalentAccordingToCompareTo(Integer other)
Deprecated.
Use
isEqualTo(java.lang.Object) instead. Integer comparison is consistent with equality. |
void |
isNotEqualTo(Object other)
Fails if the subject is equal to the given object.
|
comparesEqualTo, isAtLeast, isAtMost, isGreaterThan, isIn, isLessThan, isNotIn
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hashCode, internalCustomName, isAnyOf, isIn, isInstanceOf, isNoneOf, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, named
public IntegerSubject(FailureStrategy failureStrategy, @Nullable Integer integer)
@Deprecated public final void isEquivalentAccordingToCompareTo(Integer other)
isEqualTo(java.lang.Object)
instead. Integer comparison is consistent with equality.ComparableSubject
Comparable.compareTo(T)
, (i.e., fails if a.comparesTo(b) != 0
).
Note: Do not use this method for checking object equality. Instead, use
Subject.isEqualTo(Object)
.
isEquivalentAccordingToCompareTo
in class ComparableSubject<IntegerSubject,Integer>
public void isEqualTo(@Nullable Object other)
Subject
isEqualTo
in class Subject<IntegerSubject,Integer>
public void isNotEqualTo(@Nullable Object other)
Subject
isNotEqualTo
in class Subject<IntegerSubject,Integer>
public void isEqualTo(long other)
Copyright © 2015. All rights reserved.