public class ShouldBeEqualWithinOffset extends BasicErrorMessageFactory
arguments, format| Modifier and Type | Method and Description |
|---|---|
static <T extends Number> |
shouldBeEqual(T actual,
T expected,
Offset<T> offset,
T difference)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedStringpublic static <T extends 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.Copyright © 2014–2017 AssertJ. All rights reserved.