| Modifier and Type | Method and Description |
|---|---|
AssertEqualsAndHashCodeArguments |
AssertEqualsAndHashCodeArguments.add(Object original,
Object changed,
boolean expectEquality)
Adds information of one more argument to the current list of arguments.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Assertions.assertEqualsAndHashCode(Class<?> clazz,
AssertEqualsAndHashCodeArguments arguments)
Asserts that the methods
Object.equals(Object) and
Object.hashCode() of objects created by executing the clazzes
constructor work as defined by arguments. |
static void |
Assertions.assertEqualsAndHashCode(Function<Object[],?> constructor,
AssertEqualsAndHashCodeArguments arguments)
Asserts that the methods
Object.equals(Object) and
Object.hashCode() of objects created by executing constructor
work as defined by arguments. |
Copyright © 2020. All rights reserved.