Package | Description |
---|---|
org.assertj.core.api | |
org.assertj.core.data | |
org.assertj.core.error | |
org.assertj.core.internal |
Modifier and Type | Method and Description |
---|---|
static Percentage |
Java6Assertions.withinPercentage(Double value)
Assertions entry point for Double
Percentage to use with isCloseTo assertions for
percentages. |
static Percentage |
Assertions.withinPercentage(Double value)
Assertions entry point for Double
Percentage to use with isCloseTo assertions for
percentages. |
static Percentage |
Java6Assertions.withinPercentage(Integer value)
Assertions entry point for Integer
Percentage to use with isCloseTo assertions for
percentages. |
static Percentage |
Assertions.withinPercentage(Integer value)
Assertions entry point for Integer
Percentage to use with isCloseTo assertions for
percentages. |
static Percentage |
Java6Assertions.withinPercentage(Long value)
Assertions entry point for Long
Percentage to use with isCloseTo assertions for
percentages. |
static Percentage |
Assertions.withinPercentage(Long value)
Assertions entry point for Long
Percentage to use with isCloseTo assertions for
percentages. |
Modifier and Type | Method and Description |
---|---|
S |
NumberAssert.isCloseTo(A expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
S |
AbstractBigDecimalAssert.isCloseTo(BigDecimal expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
S |
AbstractByteAssert.isCloseTo(byte expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
S |
AbstractByteAssert.isCloseTo(Byte expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
S |
AbstractDoubleAssert.isCloseTo(double expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
S |
AbstractDoubleAssert.isCloseTo(Double expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
S |
AbstractFloatAssert.isCloseTo(float expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
S |
AbstractFloatAssert.isCloseTo(Float expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
S |
AbstractIntegerAssert.isCloseTo(Integer expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
S |
AbstractIntegerAssert.isCloseTo(int expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
S |
AbstractLongAssert.isCloseTo(long expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
S |
AbstractLongAssert.isCloseTo(Long expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
S |
AbstractShortAssert.isCloseTo(short expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
S |
AbstractShortAssert.isCloseTo(Short expected,
Percentage percentage)
Verifies that the actual number is close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid. |
Modifier and Type | Method and Description |
---|---|
static Percentage |
Percentage.withPercentage(double value)
Creates a new
Percentage . |
Modifier and Type | Method and Description |
---|---|
static <T extends Number> |
ShouldBeEqualWithinPercentage.shouldBeEqualWithinPercentage(T actual,
T expected,
Percentage percentage,
T difference)
Creates a new
. |
Modifier and Type | Method and Description |
---|---|
void |
Longs.assertIsCloseToPercentage(AssertionInfo info,
Long actual,
Long other,
Percentage percentage) |
void |
Numbers.assertIsCloseToPercentage(AssertionInfo info,
NUMBER actual,
NUMBER other,
Percentage percentage)
Asserts that the actual value is close to the an offset expressed as an percentage value.
|
void |
Shorts.assertIsCloseToPercentage(AssertionInfo info,
Short actual,
Short other,
Percentage percentage) |
protected void |
Numbers.isCloseToPercentageCommonChecks(AssertionInfo info,
NUMBER actual,
NUMBER other,
Percentage percentage) |
Copyright © 2013-2016 AssertJ. All Rights Reserved.