Uses of Class
org.assertj.core.data.Offset
Packages that use Offset
Package
Description
-
Uses of Offset in org.assertj.core.api
Methods in org.assertj.core.api that return OffsetModifier and TypeMethodDescriptionAssertions.byLessThan
(Byte value) Assertions entry point for ByteOffset
to use with isCloseTo assertions.Assertions.byLessThan
(Double value) Alias forAssertions.offset(Double)
to use with isCloseTo assertions.Assertions.byLessThan
(Float value) Alias forAssertions.offset(Float)
to use with isCloseTo assertions.Assertions.byLessThan
(Integer value) Assertions entry point for IntegerOffset
to use with isCloseTo assertions.Assertions.byLessThan
(Long value) Assertions entry point for LongOffset
to use with isCloseTo assertions.Assertions.byLessThan
(Short value) Assertions entry point for ShortOffset
to use with isCloseTo assertions.static Offset<BigDecimal>
Assertions.byLessThan
(BigDecimal value) Assertions entry point for BigDecimalOffset
to use with isCloseTo assertions.static Offset<BigInteger>
Assertions.byLessThan
(BigInteger value) Assertions entry point for BigIntegerOffset
to use with isCloseTo assertions.Java6Assertions.byLessThan
(Byte value) Assertions entry point for ByteOffset
to use with isCloseTo assertions.Java6Assertions.byLessThan
(Double value) Alias forJava6Assertions.offset(Double)
to use with isCloseTo assertions.Java6Assertions.byLessThan
(Float value) Alias forJava6Assertions.offset(Float)
to use with isCloseTo assertions.Java6Assertions.byLessThan
(Integer value) Assertions entry point for IntegerOffset
to use with isCloseTo assertions.Java6Assertions.byLessThan
(Long value) Assertions entry point for LongOffset
to use with isCloseTo assertions.Java6Assertions.byLessThan
(Short value) Assertions entry point for ShortOffset
to use with isCloseTo assertions.static Offset<BigDecimal>
Java6Assertions.byLessThan
(BigDecimal value) Assertions entry point for BigDecimalOffset
to use with isCloseTo assertions.static Offset<BigInteger>
Java6Assertions.byLessThan
(BigInteger value) Assertions entry point for BigIntegerOffset
to use with isCloseTo assertions.Assertions entry point for doubleOffset
.Assertions entry point for floatOffset
.Assertions entry point for doubleOffset
.Assertions entry point for floatOffset
.Assertions entry point for doubleOffset
.Assertions entry point for floatOffset
.Delegate call toAssertions.offset(Double)
Delegate call toAssertions.offset(Float)
Assertions entry point for ByteOffset
to use with isCloseTo assertions.Alias forAssertions.offset(Double)
to use with isCloseTo assertions.Alias forAssertions.offset(Float)
to use with isCloseTo assertions.Assertions entry point for IntegerOffset
to use with isCloseTo assertions.Assertions entry point for LongOffset
to use with isCloseTo assertions.Assertions entry point for ShortOffset
to use with isCloseTo assertions.static Offset<BigDecimal>
Assertions.within
(BigDecimal value) Assertions entry point for BigDecimalOffset
to use with isCloseTo assertions.static Offset<BigInteger>
Assertions.within
(BigInteger value) Assertions entry point for BigIntegerOffset
to use with isCloseTo assertions.Assertions entry point for ByteOffset
to use with isCloseTo assertions.Alias forAssertionsForClassTypes.offset(Double)
to use with isCloseTo assertions.Alias forAssertionsForClassTypes.offset(Float)
to use with isCloseTo assertions.Assertions entry point for IntegerOffset
to use with isCloseTo assertions.Assertions entry point for LongOffset
to use with isCloseTo assertions.Assertions entry point for ShortOffset
to use with isCloseTo assertions.static Offset<BigDecimal>
AssertionsForClassTypes.within
(BigDecimal value) Assertions entry point for BigDecimalOffset
to use with isCloseTo assertions.Assertions entry point for ByteOffset
to use with isCloseTo assertions.Alias forJava6Assertions.offset(Double)
to use with isCloseTo assertions.Alias forJava6Assertions.offset(Float)
to use with isCloseTo assertions.Assertions entry point for IntegerOffset
to use with isCloseTo assertions.Assertions entry point for LongOffset
to use with isCloseTo assertions.Assertions entry point for ShortOffset
to use with isCloseTo assertions.static Offset<BigDecimal>
Java6Assertions.within
(BigDecimal value) Assertions entry point for BigDecimalOffset
to use with isCloseTo assertions.static Offset<BigInteger>
Java6Assertions.within
(BigInteger value) Assertions entry point for BigIntegerOffset
to use with isCloseTo assertions.Delegate call toAssertions.within(Double)
Delegate call toAssertions.within(Float)
default Offset<BigDecimal>
WithAssertions.within
(BigDecimal actual) Delegate call toAssertions.within(BigDecimal)
Assertions.withPrecision
(Double value) Alias forAssertions.offset(Double)
to use with real number assertions.Assertions.withPrecision
(Float value) Alias forAssertions.offset(Float)
to use with real number assertions.Methods in org.assertj.core.api with parameters of type OffsetModifier and TypeMethodDescriptionVerifies that the actual array contains the given values, in any order, the comparison is done at the given precision/offset set withAssertions.withPrecision(Double)
.Verifies that the actual array contains the given value at the given index.Verifies that the actual array contains the given values, in any order, the comparison is done at the given precision/offset set withAssertions.withPrecision(Float)
.Verifies that the actual array contains the given value at the given index.AbstractDoubleArrayAssert.containsExactly
(double[] values, Offset<Double> precision) Verifies that the actual group contains only the given values and nothing else, in order.AbstractFloatArrayAssert.containsExactly
(float[] values, Offset<Float> precision) Verifies that the actual group contains only the given values and nothing else, in order.AbstractDoubleArrayAssert.containsOnly
(double[] values, Offset<Double> precision) Verifies that the actual array contains only the given values and nothing else, in any order.AbstractFloatArrayAssert.containsOnly
(float[] values, Offset<Float> precision) Verifies that the actual array contains only the given values and nothing else, in any order.AbstractDoubleArrayAssert.containsOnlyOnce
(double[] values, Offset<Double> precision) Verifies that the actual array contains the given values only once.AbstractFloatArrayAssert.containsOnlyOnce
(float[] values, Offset<Float> precision) Verifies that the actual array contains the given values only once.AbstractDoubleArrayAssert.containsSequence
(double[] sequence, Offset<Double> precision) Verifies that the actual array contains the given sequence, without any other values between them.AbstractFloatArrayAssert.containsSequence
(float[] sequence, Offset<Float> precision) Verifies that the actual array contains the given sequence, without any other values between them.AbstractDoubleArrayAssert.containsSubsequence
(double[] subsequence, Offset<Double> precision) Verifies that the actual array contains the given subsequence (possibly with other values between them).AbstractFloatArrayAssert.containsSubsequence
(float[] subsequence, Offset<Float> precision) Verifies that the actual array contains the given subsequence (possibly with other values between them).AbstractDoubleArrayAssert.doesNotContain
(double[] values, Offset<Double> precision) Verifies that the actual array does not contain the given values.AbstractDoubleArrayAssert.doesNotContain
(double value, Index index, Offset<Double> precision) Verifies that the actual array does not contain the given value at the given index.AbstractFloatArrayAssert.doesNotContain
(float[] values, Offset<Float> precision) Verifies that the actual array does not contain the given values.AbstractFloatArrayAssert.doesNotContain
(float value, Index index, Offset<Float> precision) Verifies that the actual array does not contain the given value at the given index.AbstractDoubleArrayAssert.doesNotHaveDuplicates
(Offset<Double> precision) Verifies that the actual array does not contain duplicates.AbstractFloatArrayAssert.doesNotHaveDuplicates
(Offset<Float> precision) Verifies that the actual array does not contain duplicates.Verifies that the actual array ends with the given sequence of values, without any other values between them.Verifies that the actual array ends with the given sequence of values, without any other values between them.AbstractOptionalDoubleAssert.hasValueCloseTo
(Double expectedValue, Offset<Double> offset) Verifies that the actualOptionalDouble
has the value close to the argument.AtomicIntegerAssert.hasValueCloseTo
(int expected, Offset<Integer> offset) Verifies that the actual atomic has a value close to the given one within the given offset.
If difference is equal to the offset value, assertion is considered valid.AtomicLongAssert.hasValueCloseTo
(long expected, Offset<Long> offset) Verifies that the actual atomic has a value close to the given one within the given offset.
If difference is equal to the offset value, assertion is considered valid.AbstractBigDecimalAssert.isCloseTo
(BigDecimal expected, 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.AbstractBigIntegerAssert.isCloseTo
(BigInteger expected, Offset<BigInteger> 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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.AbstractBigDecimalAssert.isNotCloseTo
(BigDecimal expected, Offset<BigDecimal> offset) Verifies that the actual number is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractBigIntegerAssert.isNotCloseTo
(BigInteger expected, Offset<BigInteger> offset) Verifies that the actual number is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractByteAssert.isNotCloseTo
(byte expected, Offset<Byte> offset) Verifies that the actual byte is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractByteAssert.isNotCloseTo
(Byte expected, Offset<Byte> offset) Verifies that the actual Byte is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractDoubleAssert.isNotCloseTo
(double expected, Offset<Double> offset) Verifies that the actual number is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractDoubleAssert.isNotCloseTo
(Double expected, Offset<Double> offset) Verifies that the actual number is close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractFloatAssert.isNotCloseTo
(float expected, Offset<Float> offset) Verifies that the actual number is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractFloatAssert.isNotCloseTo
(Float expected, Offset<Float> offset) Verifies that the actual number is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractIntegerAssert.isNotCloseTo
(int expected, Offset<Integer> offset) Verifies that the actual int is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractIntegerAssert.isNotCloseTo
(Integer expected, Offset<Integer> offset) Verifies that the actual int is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractLongAssert.isNotCloseTo
(long expected, Offset<Long> offset) Verifies that the actual long is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractLongAssert.isNotCloseTo
(Long expected, Offset<Long> offset) Verifies that the actual long is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractShortAssert.isNotCloseTo
(short expected, Offset<Short> offset) Verifies that the actual short is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractShortAssert.isNotCloseTo
(Short expected, Offset<Short> offset) Verifies that the actual short is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.FloatingPointNumberAssert.isNotCloseTo
(ACTUAL expected, Offset<ACTUAL> offset) Verifies that the actual number is not close to the given one by less than the given offset.
If the difference is equal to the offset value, the assertion fails.NumberAssert.isNotCloseTo
(ACTUAL expected, Offset<ACTUAL> offset) Verifies that the actual number is not close to the given one within the given offset.
If the difference is equal to the offset value, the assertion fails.AbstractDoubleArrayAssert.startsWith
(double[] values, Offset<Double> precision) Verifies that the actual array starts with the given sequence of values, without any other values between them.AbstractFloatArrayAssert.startsWith
(float[] values, Offset<Float> precision) Verifies that the actual array starts with the given sequence of values, without any other values between them. -
Uses of Offset in org.assertj.core.data
Methods in org.assertj.core.data that return Offset -
Uses of Offset in org.assertj.core.error
Methods in org.assertj.core.error with parameters of type OffsetModifier and TypeMethodDescriptionstatic <T extends Number>
ErrorMessageFactoryShouldBeEqualWithinOffset.shouldBeEqual
(T actual, T expected, Offset<T> offset, T difference) Creates a new
.ShouldBeEqualWithinOffset
OptionalDoubleShouldHaveValueCloseTo.shouldHaveValueCloseTo
(OptionalDouble optional, double expectedValue, Offset<Double> offset, double difference) Indicates that the providedOptionalDouble
does not have the provided argument.static <T extends Number>
ErrorMessageFactoryShouldNotBeEqualWithinOffset.shouldNotBeEqual
(T actual, T expected, Offset<T> offset, T difference) Creates a new
.ShouldNotBeEqualWithinOffset
Constructors in org.assertj.core.error with parameters of type OffsetModifierConstructorDescriptionprivate
OptionalDoubleShouldHaveValueCloseTo
(OptionalDouble actual, double expected, Offset<Double> offset, double difference) private
ShouldBeEqualWithinOffset
(Number actual, Number expected, Offset<T> offset, Number difference) private
ShouldNotBeEqualWithinOffset
(Number actual, Number expected, Offset<T> offset, Number difference) -
Uses of Offset in org.assertj.core.internal
Methods in org.assertj.core.internal with parameters of type OffsetModifier and TypeMethodDescriptionvoid
RealNumbers.assertEqual
(AssertionInfo info, NUMBER actual, NUMBER expected, Offset<NUMBER> offset) Verifies that two real numbers 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
Numbers.assertIsCloseTo
(AssertionInfo info, NUMBER actual, NUMBER expected, Offset<NUMBER> offset) Asserts that the actual value is close to the offset.void
Numbers.assertIsNotCloseTo
(AssertionInfo info, NUMBER actual, NUMBER expected, Offset<NUMBER> offset) Asserts that the actual value is not close to the offset.(package private) static void
CommonValidations.checkOffsetIsNotNull
(Offset<?> offset)