public class ShouldBeEqualWithinOffset extends BasicErrorMessageFactory
arguments, format, formatter| Modifier | Constructor and Description |
|---|---|
private |
ShouldBeEqualWithinOffset(java.lang.Number actual,
java.lang.Number expected,
Offset<T> offset,
java.lang.Number difference) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.Number> |
shouldBeEqual(T actual,
T expected,
Offset<T> offset,
T difference)
Creates a new
. |
private static <T extends java.lang.Number> |
validOrNot(Offset<T> offset) |
create, create, create, equals, hashCode, toString, unquotedStringprivate ShouldBeEqualWithinOffset(java.lang.Number actual,
java.lang.Number expected,
Offset<T> offset,
java.lang.Number difference)
public static <T extends java.lang.Number> ErrorMessageFactory shouldBeEqual(T actual, T expected, Offset<T> offset, T difference)
ShouldBeEqualWithinOffset.T - guarantees that the values used in this factory have the same type.actual - the actual value in the failed assertion.expected - the expected value in the failed assertion.offset - the given positive offset.difference - the effective difference between actual and expected.ErrorMessageFactory.private static <T extends java.lang.Number> java.lang.String validOrNot(Offset<T> offset)