Package org.assertj.core.error
Class ShouldNotBeEqualWithinOffset
java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.assertj.core.error.ShouldNotBeEqualWithinOffset
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that two numbers are not equal within a positive offset failed.
-
Field Summary
Fields inherited from class org.assertj.core.error.BasicErrorMessageFactory
arguments, format, formatter -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateShouldNotBeEqualWithinOffset(Number actual, Number expected, Offset<T> offset, Number difference) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Number>
ErrorMessageFactoryshouldNotBeEqual(T actual, T expected, Offset<T> offset, T difference) Creates a new.ShouldNotBeEqualWithinOffsetvalidOrNot(Offset<T> offset) Methods inherited from class org.assertj.core.error.BasicErrorMessageFactory
create, create, create, equals, hashCode, toString, unquotedString
-
Constructor Details
-
ShouldNotBeEqualWithinOffset
-
-
Method Details
-
shouldNotBeEqual
public static <T extends Number> ErrorMessageFactory shouldNotBeEqual(T actual, T expected, Offset<T> offset, T difference) Creates a new.ShouldNotBeEqualWithinOffset- Type Parameters:
T- guarantees that the values used in this factory have the same type.- Parameters:
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.- Returns:
- the created
ErrorMessageFactory.
-
validOrNot
-