Package | Description |
---|---|
org.fest.assertions.api | |
org.fest.assertions.core | |
org.fest.assertions.data | |
org.fest.assertions.error | |
org.fest.assertions.internal |
Modifier and Type | Method and Description |
---|---|
static Offset<java.lang.Double> |
Assertions.offset(java.lang.Double value)
Only delegate to
offset(Double) so that Assertions offers a full feature entry point to all Fest Assert
features (but you can use Offset if you prefer). |
static Offset<java.lang.Float> |
Assertions.offset(java.lang.Float value)
Only delegate to
offset(Float) so that Assertions offers a full feature entry point to all Fest Assert
features (but you can use Offset if you prefer). |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
static Offset<java.lang.Double> |
Offset.offset(java.lang.Double value)
Creates a new
Offset . |
static Offset<java.lang.Float> |
Offset.offset(java.lang.Float value)
Creates a new
Offset . |
static Offset<java.lang.Integer> |
Offset.offset(java.lang.Integer value)
Creates a new
Offset . |
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.Number> |
ShouldBeEqualWithinOffset.shouldBeEqual(T actual,
T expected,
Offset<T> offset,
T difference)
Creates a new
. |
static ErrorMessageFactory |
ShouldBeEqualImages.shouldBeEqualImages(Offset<java.lang.Integer> offset)
Creates a new
. |
Modifier and Type | Method and 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. |
Copyright © 2007–2018. All rights reserved.