Uses of Class
org.assertj.core.data.Offset

Packages that use Offset
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
static Offset<Double> Assertions.offset(Double value)
          Assertions entry point for double Offset.
static Offset<Float> Assertions.offset(Float value)
          Assertions entry point for float Offset.
static Offset<BigDecimal> Assertions.within(BigDecimal value)
          Assertions entry point for BigDecimal Offset to use with isCloseTo assertions.
static Offset<Double> Assertions.within(Double value)
          Alias for Assertions.offset(Double) to use with isCloseTo assertions.
static Offset<Float> Assertions.within(Float value)
          Alias for Assertions.offset(Float) to use with isCloseTo assertions.
 

Methods in org.assertj.core.api with parameters of type Offset
 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 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 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.
 

Uses of Offset in org.assertj.core.data
 

Methods in org.assertj.core.data that return Offset
static Offset<BigDecimal> Offset.offset(BigDecimal value)
          Creates a new Offset.
static Offset<Double> Offset.offset(Double value)
          Creates a new Offset.
static Offset<Float> Offset.offset(Float value)
          Creates a new Offset.
static Offset<Integer> Offset.offset(Integer value)
          Creates a new Offset.
 

Uses of Offset in org.assertj.core.error
 

Methods in org.assertj.core.error with parameters of type Offset
static
<T extends Number>
ErrorMessageFactory
ShouldBeEqualWithinOffset.shouldBeEqual(T actual, T expected, Offset<T> offset, T difference)
          Creates a new ShouldBeEqualWithinOffset.
 

Uses of Offset in org.assertj.core.internal
 

Methods in org.assertj.core.internal with parameters of type 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 Floats.assertIsCloseTo(AssertionInfo info, Float actual, Float expected, Offset<Float> offset)
           
 void Doubles.assertIsCloseTo(WritableAssertionInfo info, Double actual, double other, Offset<Double> 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 © 2013–2015 AssertJ. All rights reserved.