Uses of Class
org.assertj.core.data.Offset
Packages that use Offset
-
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) Build astrict Offset
to use withAbstractDoubleAssert.isCloseTo(double, Offset)
andAbstractDoubleAssert.isNotCloseTo(double, Offset)
assertions.Assertions.byLessThan
(Float value) Alias forAssertions.offset(Float)
to use with isCloseTo assertions.Assertions.byLessThan
(Integer value) Assertions.byLessThan
(Long value) 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.BDDAssertions.byLessThan
(Byte value) Assertions entry point for ByteOffset
to use with isCloseTo assertions.BDDAssertions.byLessThan
(Double value) Build astrict Offset
to use withAbstractDoubleAssert.isCloseTo(double, Offset)
andAbstractDoubleAssert.isNotCloseTo(double, Offset)
assertions.BDDAssertions.byLessThan
(Float value) Alias forAssertions.offset(Float)
to use with isCloseTo assertions.BDDAssertions.byLessThan
(Integer value) BDDAssertions.byLessThan
(Long value) BDDAssertions.byLessThan
(Short value) Assertions entry point for ShortOffset
to use with isCloseTo assertions.static Offset
<BigDecimal> BDDAssertions.byLessThan
(BigDecimal value) Assertions entry point for BigDecimalOffset
to use with isCloseTo assertions.static Offset
<BigInteger> BDDAssertions.byLessThan
(BigInteger value) Assertions entry point for BigIntegerOffset
to use with isCloseTo assertions.Java6Assertions.byLessThan
(Byte value) Deprecated.Assertions entry point for ByteOffset
to use with isCloseTo assertions.Java6Assertions.byLessThan
(Double value) Deprecated.Alias forJava6Assertions.offset(Double)
to use with isCloseTo assertions.Java6Assertions.byLessThan
(Float value) Deprecated.Alias forJava6Assertions.offset(Float)
to use with isCloseTo assertions.Java6Assertions.byLessThan
(Integer value) Deprecated.Assertions entry point for IntegerOffset
to use with isCloseTo assertions.Java6Assertions.byLessThan
(Long value) Deprecated.Assertions entry point for LongOffset
to use with isCloseTo assertions.Java6Assertions.byLessThan
(Short value) Deprecated.Assertions entry point for ShortOffset
to use with isCloseTo assertions.static Offset
<BigDecimal> Java6Assertions.byLessThan
(BigDecimal value) Deprecated.Assertions entry point for BigDecimalOffset
to use with isCloseTo assertions.static Offset
<BigInteger> Java6Assertions.byLessThan
(BigInteger value) Deprecated.Assertions entry point for BigIntegerOffset
to use with isCloseTo assertions.WithAssertions.byLessThan
(Byte value) Assertions entry point for ByteOffset
to use with isCloseTo assertions.WithAssertions.byLessThan
(Double value) Alias forWithAssertions.offset(Double)
to use with isCloseTo assertions.WithAssertions.byLessThan
(Float value) Alias forWithAssertions.offset(Float)
to use with isCloseTo assertions.WithAssertions.byLessThan
(Integer value) Assertions entry point for IntegerOffset
to use with isCloseTo assertions.WithAssertions.byLessThan
(Long value) Assertions entry point for LongOffset
to use with isCloseTo assertions.WithAssertions.byLessThan
(Short value) Assertions entry point for ShortOffset
to use with isCloseTo assertions.default Offset
<BigDecimal> WithAssertions.byLessThan
(BigDecimal value) Assertions entry point for BigDecimalOffset
to use with isCloseTo assertions.default Offset
<BigInteger> WithAssertions.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
.Deprecated.Assertions entry point for doubleOffset
.Deprecated.Assertions entry point for floatOffset
.Assertions entry point for doubleOffset
.Assertions entry point for floatOffset
.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 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.Builds anOffset
to use withisCloseTo
assertions.Builds anOffset
to use with isCloseTo assertions.Assertions entry point for IntegerOffset
to use with isCloseTo assertions.Assertions entry point for ShortOffset
to use with isCloseTo assertions.static Offset
<BigDecimal> BDDAssertions.within
(BigDecimal value) Assertions entry point for BigDecimalOffset
to use with isCloseTo assertions.static Offset
<BigInteger> BDDAssertions.within
(BigInteger value) Assertions entry point for BigIntegerOffset
to use with isCloseTo assertions.Deprecated.Assertions entry point for ByteOffset
to use with isCloseTo assertions.Deprecated.Alias forJava6Assertions.offset(Double)
to use with isCloseTo assertions.Deprecated.Alias forJava6Assertions.offset(Float)
to use with isCloseTo assertions.Deprecated.Assertions entry point for IntegerOffset
to use with isCloseTo assertions.Deprecated.Assertions entry point for LongOffset
to use with isCloseTo assertions.Deprecated.Assertions entry point for ShortOffset
to use with isCloseTo assertions.static Offset
<BigDecimal> Java6Assertions.within
(BigDecimal value) Deprecated.Assertions entry point for BigDecimalOffset
to use with isCloseTo assertions.static Offset
<BigInteger> Java6Assertions.within
(BigInteger value) Deprecated.Assertions entry point for BigIntegerOffset
to use with isCloseTo assertions.Assertions entry point for ByteOffset
to use with isCloseTo assertions.Alias forWithAssertions.offset(Double)
to use with isCloseTo assertions.Alias forWithAssertions.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.default Offset
<BigDecimal> WithAssertions.within
(BigDecimal value) Assertions entry point for BigDecimalOffset
to use with isCloseTo assertions.default Offset
<BigInteger> WithAssertions.within
(BigInteger value) Assertions entry point for BigIntegerOffset
to use with isCloseTo assertions.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.BDDAssertions.withPrecision
(Double value) Builds anOffset
to use with real number assertions.BDDAssertions.withPrecision
(Float value) Builds anOffset
to use with real number assertions.WithAssertions.withPrecision
(Double value) Assertions entry point for doubleOffset
.WithAssertions.withPrecision
(Float value) Assertions entry point for floatOffset
.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 values of the given array, in any order, the comparison is done at the given precision/offset set withAssertions.withPrecision(Double)
.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.Verifies that the actual array contains the values of the given array, in any order, the comparison is done at the given precision/offset set withAssertions.withPrecision(Float)
.AbstractDoubleArrayAssert.containsExactly
(double[] values, Offset<Double> precision) Verifies that the actual group contains only the given values and nothing else, in order.AbstractDoubleArrayAssert.containsExactly
(Double[] values, Offset<Double> precision) Verifies that the actual group contains only the values of the given array 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.AbstractFloatArrayAssert.containsExactly
(Float[] values, Offset<Float> precision) Verifies that the actual group contains only the values of the given array 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.AbstractDoubleArrayAssert.containsOnly
(Double[] values, Offset<Double> precision) Verifies that the actual array contains only the values of the given array 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.AbstractFloatArrayAssert.containsOnly
(Float[] values, Offset<Float> precision) Verifies that the actual array contains only the values of the given array and nothing else, in any order.AbstractDoubleArrayAssert.containsOnlyOnce
(double[] values, Offset<Double> precision) Verifies that the actual array contains the given values only once.AbstractDoubleArrayAssert.containsOnlyOnce
(Double[] values, Offset<Double> precision) Verifies that the actual array contains the values of the given array only once.AbstractFloatArrayAssert.containsOnlyOnce
(float[] values, Offset<Float> 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 values of the given array only once.AbstractDoubleArrayAssert.containsSequence
(double[] sequence, Offset<Double> precision) Verifies that the actual array contains the given sequence, without any other values between them.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.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).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).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.AbstractDoubleArrayAssert.doesNotContain
(Double[] values, Offset<Double> precision) Verifies that the actual array does not contain the values of the given array.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.AbstractFloatArrayAssert.doesNotContain
(Float[] values, Offset<Float> precision) Verifies that the actual array does not contain the values of the given array.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.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.AtomicLongAssert.hasValueCloseTo
(long expected, Offset<Long> offset) Verifies that the actual atomic has a value close to the given one within the given offset.AbstractBigDecimalAssert.isCloseTo
(BigDecimal expected, Offset<BigDecimal> offset) Verifies that the actual number is close to the given one within the given offset value.AbstractBigIntegerAssert.isCloseTo
(BigInteger expected, Offset<BigInteger> offset) Verifies that the actual number is close to the given one within the given offset.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.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 value.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.Verifies that the actual number is close to the given one within the given offset value.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.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.AbstractByteAssert.isNotCloseTo
(byte expected, Offset<Byte> offset) Verifies that the actual number is not close to the given one by less than the given offset.AbstractByteAssert.isNotCloseTo
(Byte expected, Offset<Byte> offset) Verifies that the actual number is not close to the given one by less than the given offset.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.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.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.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.AbstractIntegerAssert.isNotCloseTo
(int expected, Offset<Integer> offset) Verifies that the actual number is not close to the given one by less than the given offset.AbstractIntegerAssert.isNotCloseTo
(Integer expected, Offset<Integer> offset) Verifies that the actual number is not close to the given one by less than the given offset.AbstractLongAdderAssert.isNotCloseTo
(Long expected, Offset<Long> offset) AbstractLongAssert.isNotCloseTo
(long expected, Offset<Long> offset) Verifies that the actual number is not close to the given one by less than the given offset.AbstractLongAssert.isNotCloseTo
(Long expected, Offset<Long> offset) Verifies that the actual number is not close to the given one by less than the given offset.AbstractShortAssert.isNotCloseTo
(short expected, Offset<Short> offset) Verifies that the actual number is not close to the given one by less than the given offset.AbstractShortAssert.isNotCloseTo
(Short expected, Offset<Short> offset) Verifies that the actual number is not close to the given one by less than the given offset.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.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.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 OffsetModifier and TypeMethodDescriptionOffset.offset
(T value) Offset.strictOffset
(T value) Creates a new strictOffset
that letisCloseTo
assertion pass when|actual-expected| < offset value
. -
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
OptionalDoubleShouldHaveValueCloseToOffset.shouldHaveValueCloseToOffset
(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