T - Type of object which is testedpublic abstract class ObjectTest<T> extends Object
BasicObjectTest| Constructor and Description |
|---|
ObjectTest()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
equalsIsConsistent(Object x,
Object y)
Deprecated.
For any non-null reference values x and y, multiple invocations
of x.equals(y) consistently return true or consistently return
false, provided no information used in equals comparisons on
the objects is modified.
|
void |
equalsIsReflexive(Object x)
Deprecated.
For any non-null reference value x, x.equals(x) should return true
|
void |
equalsIsSymmetric(Object x,
Object y)
Deprecated.
For any non-null reference values x and y, x.equals(y)
should return true if and only if y.equals(x) returns true.
|
void |
equalsIsTransitive(Object x,
Object y,
Object z)
Deprecated.
For any non-null reference values x, y, and z, if x.equals(y)
returns true and y.equals(z) returns true, then x.equals(z)
should return true.
|
void |
equalsReturnFalseOnNull(Object x)
Deprecated.
For any non-null reference value x, x.equals(null) should
return false.
|
void |
equalsWorks(Object x,
Object y)
Deprecated.
Test that x.equals(y) where x and y are the same datapoint
instance works.
|
void |
hashCodeIsConsistentWithEquals(Object x,
Object y)
Deprecated.
If two objects are equal according to the equals(Object) method,
then calling the hashCode method on each of the two objects
must produce the same integer result.
|
void |
hashCodeIsSelfConsistent(Object x)
Deprecated.
Whenever it is invoked on the same object more than once
the hashCode() method must consistently return the same
integer.
|
public final void equalsIsReflexive(Object x)
public final void equalsIsSymmetric(Object x, Object y)
public final void equalsIsTransitive(Object x, Object y, Object z)
public final void equalsIsConsistent(Object x, Object y)
public final void equalsReturnFalseOnNull(Object x)
public final void hashCodeIsSelfConsistent(Object x)
public final void hashCodeIsConsistentWithEquals(Object x, Object y)
Copyright © 2022. All rights reserved.