Uses of Class
org.assertj.core.data.Percentage
Packages that use Percentage
-
Uses of Percentage in org.assertj.core.api
Methods in org.assertj.core.api that return PercentageModifier and TypeMethodDescriptionstatic Percentage
Assertions.withinPercentage
(Double value) Assertions entry point for DoublePercentage
to use with isCloseTo assertions for percentages.static Percentage
Assertions.withinPercentage
(Integer value) Assertions entry point for IntegerPercentage
to use with isCloseTo assertions for percentages.static Percentage
Assertions.withinPercentage
(Long value) Assertions entry point for LongPercentage
to use with isCloseTo assertions for percentages.static Percentage
AssertionsForClassTypes.withinPercentage
(Double value) Assertions entry point for DoublePercentage
to use with isCloseTo assertions for percentages.static Percentage
AssertionsForClassTypes.withinPercentage
(Integer value) Assertions entry point for IntegerPercentage
to use with isCloseTo assertions for percentages.static Percentage
AssertionsForClassTypes.withinPercentage
(Long value) Assertions entry point for LongPercentage
to use with isCloseTo assertions for percentages.static Percentage
BDDAssertions.withinPercentage
(Double value) Assertions entry point for DoublePercentage
to use with isCloseTo assertions for percentages.static Percentage
BDDAssertions.withinPercentage
(Integer value) Assertions entry point for IntegerPercentage
to use with isCloseTo assertions for percentages.static Percentage
BDDAssertions.withinPercentage
(Long value) Assertions entry point for LongPercentage
to use with isCloseTo assertions for percentages.static Percentage
Java6Assertions.withinPercentage
(Double value) Deprecated.Assertions entry point for DoublePercentage
to use with isCloseTo assertions for percentages.static Percentage
Java6Assertions.withinPercentage
(Integer value) Deprecated.Assertions entry point for IntegerPercentage
to use with isCloseTo assertions for percentages.static Percentage
Java6Assertions.withinPercentage
(Long value) Deprecated.Assertions entry point for LongPercentage
to use with isCloseTo assertions for percentages.default Percentage
WithAssertions.withinPercentage
(Double value) Assertions entry point for DoublePercentage
to use with isCloseTo assertions for percentages.default Percentage
WithAssertions.withinPercentage
(Integer value) Assertions entry point for IntegerPercentage
to use with isCloseTo assertions for percentages.default Percentage
WithAssertions.withinPercentage
(Long value) Assertions entry point for LongPercentage
to use with isCloseTo assertions for percentages.Methods in org.assertj.core.api with parameters of type PercentageModifier and TypeMethodDescriptionAbstractOptionalDoubleAssert.hasValueCloseTo
(Double expectedValue, Percentage percentage) Verifies that the actualOptionalDouble
has a value close to the expected value, within the given percentage.
If the difference is equal to the percentage value, the assertion is considered valid.AtomicIntegerAssert.hasValueCloseTo
(int expected, Percentage percentage) Verifies that the actual atomic has a value close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid.AtomicLongAssert.hasValueCloseTo
(long expected, Percentage percentage) Verifies that the actual atomic has a value close to the given one within the given percentage.
If difference is equal to the percentage value, assertion is considered valid.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.AbstractBigIntegerAssert.isCloseTo
(BigInteger 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.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.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.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.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.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.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.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.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.AbstractLongAdderAssert.isCloseTo
(Long expected, Percentage percentage) 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.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.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.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.NumberAssert.isCloseTo
(ACTUAL 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.AbstractBigDecimalAssert.isNotCloseTo
(BigDecimal expected, Percentage percentage) Verifies that the actual number is not close to the given one by the given percentage.
If difference is equal to the percentage value, the assertion fails.AbstractBigIntegerAssert.isNotCloseTo
(BigInteger expected, Percentage percentage) Verifies that the actual number is not close to the given one by the given percentage.
If difference is equal to the percentage value, the assertion fails.AbstractByteAssert.isNotCloseTo
(byte expected, Percentage percentage) Verifies that the actual number is not close to the given one by the given percentage.
If difference is equal to the percentage value, the assertion fails.AbstractByteAssert.isNotCloseTo
(Byte expected, Percentage percentage) Verifies that the actual number is not close to the given one b the given percentage.
If difference is equal to the percentage value, the assertion fails.AbstractDoubleAssert.isNotCloseTo
(double expected, Percentage percentage) Verifies that the actual number is not close to the given one within the given percentage.
If difference is equal to the percentage value, the assertion fails.AbstractDoubleAssert.isNotCloseTo
(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, the assertion fails.AbstractFloatAssert.isNotCloseTo
(float expected, Percentage percentage) Verifies that the actual number is not close to the given one within the given percentage.
If difference is equal to the percentage value, the assertion fails.AbstractFloatAssert.isNotCloseTo
(Float expected, Percentage percentage) Verifies that the actual number is not close to the given one within the given percentage.
If difference is equal to the percentage value, the assertion fails.AbstractIntegerAssert.isNotCloseTo
(int expected, Percentage percentage) Verifies that the actual number is not close to the given one by the given percentage.
If difference is equal to the percentage value, the assertion fails.AbstractIntegerAssert.isNotCloseTo
(Integer expected, Percentage percentage) Verifies that the actual number is not close to the given one by the given percentage.
If difference is equal to the percentage value, the assertion fails.AbstractLongAdderAssert.isNotCloseTo
(Long expected, Percentage percentage) AbstractLongAssert.isNotCloseTo
(long expected, Percentage percentage) Verifies that the actual number is not close to the given one within the given percentage.
If difference is equal to the percentage value, the assertion fails.AbstractLongAssert.isNotCloseTo
(Long expected, Percentage percentage) Verifies that the actual number is not close to the given one within the given percentage.
If difference is equal to the percentage value, the assertion fails.AbstractShortAssert.isNotCloseTo
(short expected, Percentage percentage) Verifies that the actual number is not close to the given one within the given percentage.
If difference is equal to the percentage value, the assertion fails.AbstractShortAssert.isNotCloseTo
(Short expected, Percentage percentage) Verifies that the actual number is not close to the given one within the given percentage.
If difference is equal to the percentage value, the assertion fails.NumberAssert.isNotCloseTo
(ACTUAL expected, Percentage percentage) Verifies that the actual number is not close to the given one within the given percentage.
If difference is equal to the percentage value, the assertion fails. -
Uses of Percentage in org.assertj.core.data
Methods in org.assertj.core.data that return PercentageModifier and TypeMethodDescriptionstatic Percentage
Percentage.withPercentage
(double value) Creates a newPercentage
. -
Uses of Percentage in org.assertj.core.error
Methods in org.assertj.core.error with parameters of type PercentageModifier and TypeMethodDescriptionstatic <T extends Number>
ErrorMessageFactoryShouldBeEqualWithinPercentage.shouldBeEqualWithinPercentage
(T actual, T expected, Percentage percentage, T difference) Creates a new
.ShouldBeEqualWithinPercentage
OptionalDoubleShouldHaveValueCloseToPercentage.shouldHaveValueCloseToPercentage
(OptionalDouble optional, double expectedValue, Percentage percentage, double difference) Indicates that the providedOptionalDouble
has a value, but it is not within the given positive percentage.static <T extends Number>
ErrorMessageFactoryShouldNotBeEqualWithinPercentage.shouldNotBeEqualWithinPercentage
(T actual, T expected, Percentage percentage, T difference) Creates a new
.ShouldNotBeEqualWithinPercentage