Uses of Class
org.assertj.core.data.Offset
-
Packages that use Offset Package Description org.assertj.core.api org.assertj.core.data org.assertj.core.error org.assertj.core.internal -
-
Uses of Offset in org.assertj.core.api
Methods in org.assertj.core.api that return Offset Modifier and Type Method Description static Offset<Byte>Assertions. byLessThan(Byte value)Assertions entry point for ByteOffsetto use with isCloseTo assertions.static Offset<Double>Assertions. byLessThan(Double value)Build astrictOffsetto use withAbstractDoubleAssert.isCloseTo(double, Offset)andAbstractDoubleAssert.isNotCloseTo(double, Offset)assertions.static Offset<Float>Assertions. byLessThan(Float value)Alias forAssertions.offset(Float)to use with isCloseTo assertions.static Offset<Integer>Assertions. byLessThan(Integer value)static Offset<Long>Assertions. byLessThan(Long value)static Offset<Short>Assertions. byLessThan(Short value)Assertions entry point for ShortOffsetto use with isCloseTo assertions.static Offset<BigDecimal>Assertions. byLessThan(BigDecimal value)Assertions entry point for BigDecimalOffsetto use with isCloseTo assertions.static Offset<BigInteger>Assertions. byLessThan(BigInteger value)Assertions entry point for BigIntegerOffsetto use with isCloseTo assertions.static Offset<Byte>Java6Assertions. byLessThan(Byte value)Deprecated.Assertions entry point for ByteOffsetto use with isCloseTo assertions.static Offset<Double>Java6Assertions. byLessThan(Double value)Deprecated.Alias forJava6Assertions.offset(Double)to use with isCloseTo assertions.static Offset<Float>Java6Assertions. byLessThan(Float value)Deprecated.Alias forJava6Assertions.offset(Float)to use with isCloseTo assertions.static Offset<Integer>Java6Assertions. byLessThan(Integer value)Deprecated.Assertions entry point for IntegerOffsetto use with isCloseTo assertions.static Offset<Long>Java6Assertions. byLessThan(Long value)Deprecated.Assertions entry point for LongOffsetto use with isCloseTo assertions.static Offset<Short>Java6Assertions. byLessThan(Short value)Deprecated.Assertions entry point for ShortOffsetto use with isCloseTo assertions.static Offset<BigDecimal>Java6Assertions. byLessThan(BigDecimal value)Deprecated.Assertions entry point for BigDecimalOffsetto use with isCloseTo assertions.static Offset<BigInteger>Java6Assertions. byLessThan(BigInteger value)Deprecated.Assertions entry point for BigIntegerOffsetto use with isCloseTo assertions.default Offset<Byte>WithAssertions. byLessThan(Byte value)Assertions entry point for ByteOffsetto use with isCloseTo assertions.default Offset<Double>WithAssertions. byLessThan(Double value)Alias forWithAssertions.offset(Double)to use with isCloseTo assertions.default Offset<Float>WithAssertions. byLessThan(Float value)Alias forWithAssertions.offset(Float)to use with isCloseTo assertions.default Offset<Integer>WithAssertions. byLessThan(Integer value)Assertions entry point for IntegerOffsetto use with isCloseTo assertions.default Offset<Long>WithAssertions. byLessThan(Long value)Assertions entry point for LongOffsetto use with isCloseTo assertions.default Offset<Short>WithAssertions. byLessThan(Short value)Assertions entry point for ShortOffsetto use with isCloseTo assertions.default Offset<BigDecimal>WithAssertions. byLessThan(BigDecimal value)Assertions entry point for BigDecimalOffsetto use with isCloseTo assertions.default Offset<BigInteger>WithAssertions. byLessThan(BigInteger value)Assertions entry point for BigIntegerOffsetto use with isCloseTo assertions.static Offset<Double>Assertions. offset(Double value)Assertions entry point for doubleOffset.static Offset<Float>Assertions. offset(Float value)Assertions entry point for floatOffset.static Offset<Double>AssertionsForClassTypes. offset(Double value)Assertions entry point for doubleOffset.static Offset<Float>AssertionsForClassTypes. offset(Float value)Assertions entry point for floatOffset.static Offset<Double>Java6Assertions. offset(Double value)Deprecated.Assertions entry point for doubleOffset.static Offset<Float>Java6Assertions. offset(Float value)Deprecated.Assertions entry point for floatOffset.default Offset<Double>WithAssertions. offset(Double value)Assertions entry point for doubleOffset.default Offset<Float>WithAssertions. offset(Float value)Assertions entry point for floatOffset.static Offset<Byte>Assertions. within(Byte value)Assertions entry point for ByteOffsetto use with isCloseTo assertions.static Offset<Double>Assertions. within(Double value)Alias forAssertions.offset(Double)to use with isCloseTo assertions.static Offset<Float>Assertions. within(Float value)Alias forAssertions.offset(Float)to use with isCloseTo assertions.static Offset<Integer>Assertions. within(Integer value)Assertions entry point for IntegerOffsetto use with isCloseTo assertions.static Offset<Long>Assertions. within(Long value)static Offset<Short>Assertions. within(Short value)Assertions entry point for ShortOffsetto use with isCloseTo assertions.static Offset<BigDecimal>Assertions. within(BigDecimal value)Assertions entry point for BigDecimalOffsetto use with isCloseTo assertions.static Offset<BigInteger>Assertions. within(BigInteger value)Assertions entry point for BigIntegerOffsetto use with isCloseTo assertions.static Offset<Byte>AssertionsForClassTypes. within(Byte value)Assertions entry point for ByteOffsetto use with isCloseTo assertions.static Offset<Double>AssertionsForClassTypes. within(Double value)Alias forAssertionsForClassTypes.offset(Double)to use with isCloseTo assertions.static Offset<Float>AssertionsForClassTypes. within(Float value)Alias forAssertionsForClassTypes.offset(Float)to use with isCloseTo assertions.static Offset<Integer>AssertionsForClassTypes. within(Integer value)Assertions entry point for IntegerOffsetto use with isCloseTo assertions.static Offset<Long>AssertionsForClassTypes. within(Long value)Assertions entry point for LongOffsetto use with isCloseTo assertions.static Offset<Short>AssertionsForClassTypes. within(Short value)Assertions entry point for ShortOffsetto use with isCloseTo assertions.static Offset<BigDecimal>AssertionsForClassTypes. within(BigDecimal value)Assertions entry point for BigDecimalOffsetto use with isCloseTo assertions.static Offset<Byte>Java6Assertions. within(Byte value)Deprecated.Assertions entry point for ByteOffsetto use with isCloseTo assertions.static Offset<Double>Java6Assertions. within(Double value)Deprecated.Alias forJava6Assertions.offset(Double)to use with isCloseTo assertions.static Offset<Float>Java6Assertions. within(Float value)Deprecated.Alias forJava6Assertions.offset(Float)to use with isCloseTo assertions.static Offset<Integer>Java6Assertions. within(Integer value)Deprecated.Assertions entry point for IntegerOffsetto use with isCloseTo assertions.static Offset<Long>Java6Assertions. within(Long value)Deprecated.Assertions entry point for LongOffsetto use with isCloseTo assertions.static Offset<Short>Java6Assertions. within(Short value)Deprecated.Assertions entry point for ShortOffsetto use with isCloseTo assertions.static Offset<BigDecimal>Java6Assertions. within(BigDecimal value)Deprecated.Assertions entry point for BigDecimalOffsetto use with isCloseTo assertions.static Offset<BigInteger>Java6Assertions. within(BigInteger value)Deprecated.Assertions entry point for BigIntegerOffsetto use with isCloseTo assertions.default Offset<Byte>WithAssertions. within(Byte value)Assertions entry point for ByteOffsetto use with isCloseTo assertions.default Offset<Double>WithAssertions. within(Double value)Alias forWithAssertions.offset(Double)to use with isCloseTo assertions.default Offset<Float>WithAssertions. within(Float value)Alias forWithAssertions.offset(Float)to use with isCloseTo assertions.default Offset<Integer>WithAssertions. within(Integer value)Assertions entry point for IntegerOffsetto use with isCloseTo assertions.default Offset<Long>WithAssertions. within(Long value)Assertions entry point for LongOffsetto use with isCloseTo assertions.default Offset<Short>WithAssertions. within(Short value)Assertions entry point for ShortOffsetto use with isCloseTo assertions.default Offset<BigDecimal>WithAssertions. within(BigDecimal value)Assertions entry point for BigDecimalOffsetto use with isCloseTo assertions.default Offset<BigInteger>WithAssertions. within(BigInteger value)Assertions entry point for BigIntegerOffsetto use with isCloseTo assertions.static Offset<Double>Assertions. withPrecision(Double value)Alias forAssertions.offset(Double)to use with real number assertions.static Offset<Float>Assertions. withPrecision(Float value)Alias forAssertions.offset(Float)to use with real number assertions.default Offset<Double>WithAssertions. withPrecision(Double value)Assertions entry point for doubleOffset.default Offset<Float>WithAssertions. withPrecision(Float value)Assertions entry point for floatOffset.Methods in org.assertj.core.api with parameters of type Offset Modifier and Type Method Description SELFAbstractDoubleArrayAssert. contains(double[] values, Offset<Double> precision)Verifies that the actual array contains the given values, in any order, the comparison is done at the given precision/offset set withAssertions.withPrecision(Double).SELFAbstractDoubleArrayAssert. contains(double value, Index index, Offset<Double> precision)Verifies that the actual array contains the given value at the given index.SELFAbstractFloatArrayAssert. contains(float[] values, Offset<Float> precision)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).SELFAbstractFloatArrayAssert. contains(float value, Index index, Offset<Float> precision)Verifies that the actual array contains the given value at the given index.SELFAbstractDoubleArrayAssert. containsExactly(double[] values, Offset<Double> precision)Verifies that the actual group contains only the given values and nothing else, in order.SELFAbstractFloatArrayAssert. containsExactly(float[] values, Offset<Float> precision)Verifies that the actual group contains only the given values and nothing else, in order.SELFAbstractDoubleArrayAssert. containsOnly(double[] values, Offset<Double> precision)Verifies that the actual array contains only the given values and nothing else, in any order.SELFAbstractFloatArrayAssert. containsOnly(float[] values, Offset<Float> precision)Verifies that the actual array contains only the given values and nothing else, in any order.SELFAbstractDoubleArrayAssert. containsOnlyOnce(double[] values, Offset<Double> precision)Verifies that the actual array contains the given values only once.SELFAbstractFloatArrayAssert. containsOnlyOnce(float[] values, Offset<Float> precision)Verifies that the actual array contains the given values only once.SELFAbstractDoubleArrayAssert. containsSequence(double[] sequence, Offset<Double> precision)Verifies that the actual array contains the given sequence, without any other values between them.SELFAbstractFloatArrayAssert. containsSequence(float[] sequence, Offset<Float> precision)Verifies that the actual array contains the given sequence, without any other values between them.SELFAbstractDoubleArrayAssert. containsSubsequence(double[] subsequence, Offset<Double> precision)Verifies that the actual array contains the given subsequence (possibly with other values between them).SELFAbstractFloatArrayAssert. containsSubsequence(float[] subsequence, Offset<Float> precision)Verifies that the actual array contains the given subsequence (possibly with other values between them).SELFAbstractDoubleArrayAssert. doesNotContain(double[] values, Offset<Double> precision)Verifies that the actual array does not contain the given values.SELFAbstractDoubleArrayAssert. doesNotContain(double value, Index index, Offset<Double> precision)Verifies that the actual array does not contain the given value at the given index.SELFAbstractFloatArrayAssert. doesNotContain(float[] values, Offset<Float> precision)Verifies that the actual array does not contain the given values.SELFAbstractFloatArrayAssert. doesNotContain(float value, Index index, Offset<Float> precision)Verifies that the actual array does not contain the given value at the given index.SELFAbstractDoubleArrayAssert. doesNotHaveDuplicates(Offset<Double> precision)Verifies that the actual array does not contain duplicates.SELFAbstractFloatArrayAssert. doesNotHaveDuplicates(Offset<Float> precision)Verifies that the actual array does not contain duplicates.SELFAbstractDoubleArrayAssert. endsWith(double[] values, Offset<Double> precision)Verifies that the actual array ends with the given sequence of values, without any other values between them.SELFAbstractFloatArrayAssert. endsWith(float[] values, Offset<Float> precision)Verifies that the actual array ends with the given sequence of values, without any other values between them.SELFAbstractOptionalDoubleAssert. hasValueCloseTo(Double expectedValue, Offset<Double> offset)Verifies that the actualOptionalDoublehas the value close to the argument.AtomicIntegerAssertAtomicIntegerAssert. hasValueCloseTo(int expected, Offset<Integer> offset)Verifies that the actual atomic has a value close to the given one within the given offset.AtomicLongAssertAtomicLongAssert. hasValueCloseTo(long expected, Offset<Long> offset)Verifies that the actual atomic has a value close to the given one within the given offset.SELFAbstractBigDecimalAssert. isCloseTo(BigDecimal expected, Offset<BigDecimal> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractBigIntegerAssert. isCloseTo(BigInteger expected, Offset<BigInteger> offset)Verifies that the actual number is close to the given one within the given offset.SELFAbstractByteAssert. isCloseTo(byte expected, Offset<Byte> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractByteAssert. isCloseTo(Byte expected, Offset<Byte> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractDoubleAssert. isCloseTo(double expected, Offset<Double> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractDoubleAssert. isCloseTo(Double expected, Offset<Double> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractFloatAssert. isCloseTo(float expected, Offset<Float> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractFloatAssert. isCloseTo(Float expected, Offset<Float> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractIntegerAssert. isCloseTo(int expected, Offset<Integer> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractIntegerAssert. isCloseTo(Integer expected, Offset<Integer> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractLongAssert. isCloseTo(long expected, Offset<Long> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractLongAssert. isCloseTo(Long expected, Offset<Long> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractShortAssert. isCloseTo(short expected, Offset<Short> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractShortAssert. isCloseTo(Short expected, Offset<Short> offset)Verifies that the actual number is close to the given one within the given offset value.SELFFloatingPointNumberAssert. isCloseTo(ACTUAL expected, Offset<ACTUAL> 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.SELFNumberAssert. isCloseTo(ACTUAL expected, Offset<ACTUAL> 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.SELFAbstractDoubleAssert. isEqualTo(double expected, Offset<Double> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractDoubleAssert. isEqualTo(Double expected, Offset<Double> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractFloatAssert. isEqualTo(float expected, Offset<Float> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractFloatAssert. isEqualTo(Float expected, Offset<Float> offset)Verifies that the actual number is close to the given one within the given offset value.SELFFloatingPointNumberAssert. isEqualTo(ACTUAL expected, Offset<ACTUAL> offset)Verifies that the actual number is close to the given one within the given offset value.SELFAbstractBigDecimalAssert. isNotCloseTo(BigDecimal expected, Offset<BigDecimal> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFAbstractBigIntegerAssert. isNotCloseTo(BigInteger expected, Offset<BigInteger> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFAbstractByteAssert. isNotCloseTo(byte expected, Offset<Byte> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFAbstractByteAssert. isNotCloseTo(Byte expected, Offset<Byte> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFAbstractDoubleAssert. isNotCloseTo(double expected, Offset<Double> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFAbstractDoubleAssert. isNotCloseTo(Double expected, Offset<Double> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFAbstractFloatAssert. isNotCloseTo(float expected, Offset<Float> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFAbstractFloatAssert. isNotCloseTo(Float expected, Offset<Float> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFAbstractIntegerAssert. isNotCloseTo(int expected, Offset<Integer> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFAbstractIntegerAssert. isNotCloseTo(Integer expected, Offset<Integer> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFAbstractLongAssert. isNotCloseTo(long expected, Offset<Long> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFAbstractLongAssert. isNotCloseTo(Long expected, Offset<Long> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFAbstractShortAssert. isNotCloseTo(short expected, Offset<Short> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFAbstractShortAssert. isNotCloseTo(Short expected, Offset<Short> offset)Verifies that the actual number is not close to the given one by less than the given offset.SELFFloatingPointNumberAssert. 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.SELFNumberAssert. 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.SELFAbstractDoubleArrayAssert. startsWith(double[] values, Offset<Double> precision)Verifies that the actual array starts with the given sequence of values, without any other values between them.SELFAbstractFloatArrayAssert. 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 Modifier and Type Method Description static <T extends Number>
Offset<T>Offset. offset(T value)static <T extends Number>
Offset<T>Offset. strictOffset(T value)Creates a new strictOffsetthat letisCloseToassertion pass when|actual-expected| < offset value. -
Uses of Offset in org.assertj.core.error
Methods in org.assertj.core.error with parameters of type Offset Modifier and Type Method Description static <T extends Number>
ErrorMessageFactoryShouldBeEqualWithinOffset. shouldBeEqual(T actual, T expected, Offset<T> offset, T difference)Creates a new.ShouldBeEqualWithinOffsetstatic OptionalDoubleShouldHaveValueCloseToOffsetOptionalDoubleShouldHaveValueCloseToOffset. shouldHaveValueCloseToOffset(OptionalDouble optional, double expectedValue, Offset<Double> offset, double difference)Indicates that the providedOptionalDoubledoes not have the provided argument.static <T extends Number>
ErrorMessageFactoryShouldNotBeEqualWithinOffset. shouldNotBeEqual(T actual, T expected, Offset<T> offset, T difference)Creates a new.ShouldNotBeEqualWithinOffsetprivate static <T extends Number>
StringShouldBeEqualWithinOffset. validOrNot(Offset<T> offset)private static <T extends Number>
StringShouldNotBeEqualWithinOffset. validOrNot(Offset<T> offset)Constructors in org.assertj.core.error with parameters of type Offset Constructor Description OptionalDoubleShouldHaveValueCloseToOffset(OptionalDouble actual, double expected, Offset<Double> offset, double difference)ShouldBeEqualWithinOffset(Number actual, Number expected, Offset<T> offset, Number difference)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 Offset Modifier and Type Method Description voidNumbers. assertIsCloseTo(AssertionInfo info, NUMBER actual, NUMBER expected, Offset<NUMBER> offset)Asserts that the actual value is close to the expected one by less than the given offset.voidNumbers. assertIsNotCloseTo(AssertionInfo info, NUMBER actual, NUMBER expected, Offset<NUMBER> offset)Asserts that the actual value is not close to the expected one by less than the given offset.(package private) static voidCommonValidations. checkOffsetIsNotNull(Offset<?> offset)
-