public final class EqualityAssert extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
assertEquality(Object o,
int equalIndex,
Object... osOther)
Asserts that the given target object implements equality
correctly.
|
static void |
assertEquality(Object o,
Object oEqual,
Object... osUnequal)
Asserts that the given target object implements equality
correctly.
|
static void |
assertEquality(String message,
Object o,
int equalIndex,
Object... osOther)
Asserts that the given target object implements equality
correctly.
|
static void |
assertEquality(String message,
Object o,
Object oEqual,
Object... osUnequal)
Asserts that the given target object implements equality
correctly.
|
public static void assertEquality(String message, Object o, Object oEqual, Object... osUnequal)
AssertionError thrown starts with the given message, which may
be null if no such custom message prefix is desired.message - The message.o - The target object.oEqual - Another object that is equal to (but not the same
as) the target object.osUnequal - Objects that are all unequal to the target
object. It may be null or contain null elements.public static void assertEquality(Object o, Object oEqual, Object... osUnequal)
o - The target object.oEqual - Another object that is equal to (but not the same
as) the target object.osUnequal - Objects that are all unequal to the target
object. It may be null or contain null elements.public static void assertEquality(String message, Object o, int equalIndex, Object... osOther)
AssertionError thrown starts with the given message, which may
be null if no such custom message prefix is desired.message - The message.o - The target object.equalIndex - The index in the collection below for another
object that is equal to (but not the same as) the target
object; all other collection items are unequal to the target
object.osOther - A nonempty collection of objects.public static void assertEquality(Object o, int equalIndex, Object... osOther)
o - The target object.equalIndex - The index in the collection below for another
object that is equal to (but not the same as) the target
object; all other collection items are unequal to the target
object.osOther - A nonempty collection of objects.Copyright © 2017. All Rights Reserved.