Package | Description |
---|---|
org.assertj.core.api | |
org.assertj.core.data | |
org.assertj.core.error | |
org.assertj.core.internal |
Modifier and Type | Method and Description |
---|---|
default Offset<Double> |
WithAssertions.offset(Double value)
Delegate call to
Assertions.offset(Double) |
static Offset<Double> |
AssertionsForClassTypes.offset(Double value)
Assertions entry point for double
Offset . |
static Offset<Double> |
Assertions.offset(Double value)
Assertions entry point for double
Offset . |
default Offset<Float> |
WithAssertions.offset(Float value)
Delegate call to
Assertions.offset(Float) |
static Offset<Float> |
AssertionsForClassTypes.offset(Float value)
Assertions entry point for float
Offset . |
static Offset<Float> |
Assertions.offset(Float value)
Assertions entry point for float
Offset . |
default Offset<BigDecimal> |
WithAssertions.within(BigDecimal actual)
Delegate call to
Assertions.within(BigDecimal) |
static Offset<BigDecimal> |
AssertionsForClassTypes.within(BigDecimal value)
Assertions entry point for BigDecimal
Offset to use with isCloseTo assertions. |
static Offset<BigDecimal> |
Assertions.within(BigDecimal value)
Assertions entry point for BigDecimal
Offset to use with isCloseTo assertions. |
static Offset<Byte> |
AssertionsForClassTypes.within(Byte value)
Assertions entry point for Byte
Offset to use with isCloseTo assertions. |
static Offset<Byte> |
Assertions.within(Byte value)
Assertions entry point for Byte
Offset to use with isCloseTo assertions. |
default Offset<Double> |
WithAssertions.within(Double actual)
Delegate call to
Assertions.within(Double) |
static Offset<Double> |
AssertionsForClassTypes.within(Double value)
Alias for
AssertionsForClassTypes.offset(Double) to use with isCloseTo assertions. |
static Offset<Double> |
Assertions.within(Double value)
Alias for
Assertions.offset(Double) to use with isCloseTo assertions. |
default Offset<Float> |
WithAssertions.within(Float actual)
Delegate call to
Assertions.within(Float) |
static Offset<Float> |
AssertionsForClassTypes.within(Float value)
Alias for
AssertionsForClassTypes.offset(Float) to use with isCloseTo assertions. |
static Offset<Float> |
Assertions.within(Float value)
Alias for
Assertions.offset(Float) to use with isCloseTo assertions. |
static Offset<Integer> |
AssertionsForClassTypes.within(Integer value)
Assertions entry point for Integer
Offset to use with isCloseTo assertions. |
static Offset<Integer> |
Assertions.within(Integer value)
Assertions entry point for Integer
Offset to use with isCloseTo assertions. |
static Offset<Long> |
AssertionsForClassTypes.within(Long value)
Assertions entry point for Long
Offset to use with isCloseTo assertions. |
static Offset<Long> |
Assertions.within(Long value)
Assertions entry point for Long
Offset to use with isCloseTo assertions. |
static Offset<Short> |
AssertionsForClassTypes.within(Short value)
Assertions entry point for Short
Offset to use with isCloseTo assertions. |
static Offset<Short> |
Assertions.within(Short value)
Assertions entry point for Short
Offset to use with isCloseTo assertions. |
Modifier and Type | Method and Description |
---|---|
S |
AbstractOptionalDoubleAssert.hasValueCloseTo(Double expectedValue,
Offset<Double> offset)
Verifies that the actual
OptionalDouble has the value close to the argument. |
S |
NumberAssert.isCloseTo(A expected,
Offset<A> offset)
Verifies that the actual number is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
FloatingPointNumberAssert.isCloseTo(A expected,
Offset<A> offset)
Verifies that the actual number is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractBigDecimalAssert.isCloseTo(BigDecimal other,
Offset<BigDecimal> offset)
Verifies that the actual number is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractByteAssert.isCloseTo(byte expected,
Offset<Byte> offset)
Verifies that the actual byte is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractByteAssert.isCloseTo(Byte expected,
Offset<Byte> offset)
Verifies that the actual Byte is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractDoubleAssert.isCloseTo(double other,
Offset<Double> offset)
Verifies that the actual number is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractDoubleAssert.isCloseTo(Double other,
Offset<Double> offset)
Verifies that the actual number is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractFloatAssert.isCloseTo(float other,
Offset<Float> offset)
Verifies that the actual number is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractFloatAssert.isCloseTo(Float other,
Offset<Float> offset)
Verifies that the actual number is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractIntegerAssert.isCloseTo(Integer expected,
Offset<Integer> offset)
Verifies that the actual int is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractIntegerAssert.isCloseTo(int expected,
Offset<Integer> offset)
Verifies that the actual int is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractLongAssert.isCloseTo(long expected,
Offset<Long> offset)
Verifies that the actual long is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractLongAssert.isCloseTo(Long expected,
Offset<Long> offset)
Verifies that the actual long is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractShortAssert.isCloseTo(short expected,
Offset<Short> offset)
Verifies that the actual short is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractShortAssert.isCloseTo(Short expected,
Offset<Short> offset)
Verifies that the actual short is close to the given one within the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
FloatingPointNumberAssert.isEqualTo(A expected,
Offset<A> offset)
Verifies that the actual value is close to the given one by less than the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractDoubleAssert.isEqualTo(double expected,
Offset<Double> offset)
Verifies that the actual value is close to the given one by less than the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractDoubleAssert.isEqualTo(Double expected,
Offset<Double> offset)
Verifies that the actual value is close to the given one by less than the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractFloatAssert.isEqualTo(float expected,
Offset<Float> offset)
Verifies that the actual value is close to the given one by less than the given offset.
If difference is equal to offset value, assertion is considered valid. |
S |
AbstractFloatAssert.isEqualTo(Float expected,
Offset<Float> offset)
Verifies that the actual value is close to the given one by less than the given offset.
If difference is equal to offset value, assertion is considered valid. |
Modifier and Type | Method and Description |
---|---|
static <T extends Number> |
Offset.offset(T value)
Creates a new
Offset . |
Modifier and Type | Method and Description |
---|---|
static <T extends Number> |
ShouldBeEqualWithinOffset.shouldBeEqual(T actual,
T expected,
Offset<T> offset,
T difference)
Creates a new
. |
static OptionalDoubleShouldHaveValueCloseTo |
OptionalDoubleShouldHaveValueCloseTo.shouldHaveValueCloseTo(OptionalDouble optional,
double expectedValue,
Offset<Double> offset,
double difference)
Indicates that the provided
OptionalDouble does not have the provided argument. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
BigDecimals.areNotCloseEnough(BigDecimal actual,
BigDecimal other,
Offset<BigDecimal> offset) |
void |
Doubles.assertEqual(AssertionInfo info,
Double actual,
Double expected,
Offset<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,
Float actual,
Float expected,
Offset<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. |
void |
BigDecimals.assertIsCloseTo(AssertionInfo info,
BigDecimal actual,
BigDecimal other,
Offset<BigDecimal> offset) |
void |
Bytes.assertIsCloseTo(AssertionInfo info,
Byte actual,
Byte expected,
Offset<Byte> offset) |
void |
Doubles.assertIsCloseTo(AssertionInfo info,
Double actual,
Double other,
Offset<Double> offset) |
void |
Floats.assertIsCloseTo(AssertionInfo info,
Float actual,
Float expected,
Offset<Float> offset) |
void |
Integers.assertIsCloseTo(AssertionInfo info,
Integer actual,
Integer expected,
Offset<Integer> offset) |
void |
Longs.assertIsCloseTo(AssertionInfo info,
Long actual,
Long expected,
Offset<Long> offset) |
abstract void |
Numbers.assertIsCloseTo(AssertionInfo info,
NUMBER actual,
NUMBER other,
Offset<NUMBER> offset)
Asserts that the actual value is close to the offset.
|
void |
Shorts.assertIsCloseTo(AssertionInfo info,
Short actual,
Short expected,
Offset<Short> offset) |
protected boolean |
Doubles.isEqualTo(Double actual,
Double expected,
Offset<?> offset) |
protected boolean |
Floats.isEqualTo(Float actual,
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 © 2014-2015 AssertJ. All Rights Reserved.