Uses of Class
org.fest.assertions.data.Offset
-
Packages that use Offset Package Description org.fest.assertions.api org.fest.assertions.core org.fest.assertions.data org.fest.assertions.error org.fest.assertions.internal -
-
Uses of Offset in org.fest.assertions.api
Methods in org.fest.assertions.api that return Offset Modifier and Type Method Description static Offset<java.lang.Double>
Assertions. offset(java.lang.Double value)
Only delegate tooffset(Double)
so that Assertions offers a full feature entry point to all Fest Assert features (but you can useOffset
if you prefer).static Offset<java.lang.Float>
Assertions. offset(java.lang.Float value)
Only delegate tooffset(Float)
so that Assertions offers a full feature entry point to all Fest Assert features (but you can useOffset
if you prefer).Methods in org.fest.assertions.api with parameters of type Offset Modifier and Type Method Description DoubleAssert
DoubleAssert. isEqualTo(double expected, Offset<java.lang.Double> offset)
Verifies that the actual value is equal to the given one, within a positive offset.DoubleAssert
DoubleAssert. isEqualTo(java.lang.Double expected, Offset<java.lang.Double> offset)
Verifies that the actual value is equal to the given one, within a positive offset.FloatAssert
FloatAssert. isEqualTo(float expected, Offset<java.lang.Float> offset)
Verifies that the actual value is equal to the given one, within a positive offset.FloatAssert
FloatAssert. isEqualTo(java.lang.Float expected, Offset<java.lang.Float> offset)
Verifies that the actual value is equal to the given one, within a positive offset. -
Uses of Offset in org.fest.assertions.core
Methods in org.fest.assertions.core with parameters of type Offset Modifier and Type Method Description FloatingPointNumberAssert<T>
FloatingPointNumberAssert. isEqualTo(T expected, Offset<T> offset)
Verifies that the actual value is equal to the given one, within a positive offset. -
Uses of Offset in org.fest.assertions.data
Methods in org.fest.assertions.data that return Offset Modifier and Type Method Description static Offset<java.lang.Double>
Offset. offset(java.lang.Double value)
Creates a newOffset
.static Offset<java.lang.Float>
Offset. offset(java.lang.Float value)
Creates a newOffset
.static Offset<java.lang.Integer>
Offset. offset(java.lang.Integer value)
Creates a newOffset
. -
Uses of Offset in org.fest.assertions.error
Methods in org.fest.assertions.error with parameters of type Offset Modifier and Type Method Description static <T extends java.lang.Number>
ErrorMessageFactoryShouldBeEqualWithinOffset. shouldBeEqual(T actual, T expected, Offset<T> offset, T difference)
Creates a new
.ShouldBeEqualWithinOffset
static ErrorMessageFactory
ShouldBeEqualImages. shouldBeEqualImages(Offset<java.lang.Integer> offset)
Creates a new
.ShouldBeEqualImages
-
Uses of Offset in org.fest.assertions.internal
Methods in org.fest.assertions.internal with parameters of type Offset Modifier and Type Method Description void
Doubles. assertEqual(AssertionInfo info, java.lang.Double actual, java.lang.Double expected, Offset<java.lang.Double> offset)
Verifies that two floats are equal within a positive offset.
It does not rely on the custom comparisonStrategy (if one is set) because using an offset is already a specific comparison strategy.void
Floats. assertEqual(AssertionInfo info, java.lang.Float actual, java.lang.Float expected, Offset<java.lang.Float> offset)
Verifies that two floats are equal within a positive offset.
It does not rely on the custom comparisonStrategy (if one is set) because using an offset is already a specific comparison strategy.protected boolean
Doubles. isEqualTo(java.lang.Double actual, java.lang.Double expected, Offset<?> offset)
protected boolean
Floats. isEqualTo(java.lang.Float actual, java.lang.Float expected, Offset<?> offset)
protected abstract boolean
RealNumbers. isEqualTo(NUMBER actual, NUMBER expected, Offset<?> offset)
Returns true if the two floats parameter are equal within a positive offset, false otherwise.
It does not rely on the custom comparisonStrategy (if one is set) because using an offset is already a specific comparison strategy.
-