Uses of Class
org.assertj.core.data.Percentage
Packages that use Percentage
Package
Description
-
Uses of Percentage in org.assertj.core.api
Methods in org.assertj.core.api that return PercentageModifier and TypeMethodDescriptionstatic PercentageAssertions.withinPercentage(Double value) Assertions entry point for DoublePercentageto use with isCloseTo assertions for percentages.static PercentageAssertions.withinPercentage(Integer value) Assertions entry point for IntegerPercentageto use with isCloseTo assertions for percentages.static PercentageAssertions.withinPercentage(Long value) Assertions entry point for LongPercentageto use with isCloseTo assertions for percentages.static PercentageAssertionsForClassTypes.withinPercentage(Double value) Assertions entry point for DoublePercentageto use with isCloseTo assertions for percentages.static PercentageAssertionsForClassTypes.withinPercentage(Integer value) Assertions entry point for IntegerPercentageto use with isCloseTo assertions for percentages.static PercentageAssertionsForClassTypes.withinPercentage(Long value) Assertions entry point for LongPercentageto use with isCloseTo assertions for percentages.static PercentageBDDAssertions.withinPercentage(Double value) Assertions entry point for DoublePercentageto use with isCloseTo assertions for percentages.static PercentageBDDAssertions.withinPercentage(Integer value) Assertions entry point for IntegerPercentageto use with isCloseTo assertions for percentages.static PercentageBDDAssertions.withinPercentage(Long value) Assertions entry point for LongPercentageto use with isCloseTo assertions for percentages.static PercentageJava6Assertions.withinPercentage(Double value) Deprecated.Assertions entry point for DoublePercentageto use with isCloseTo assertions for percentages.static PercentageJava6Assertions.withinPercentage(Integer value) Deprecated.Assertions entry point for IntegerPercentageto use with isCloseTo assertions for percentages.static PercentageJava6Assertions.withinPercentage(Long value) Deprecated.Assertions entry point for LongPercentageto use with isCloseTo assertions for percentages.default PercentageWithAssertions.withinPercentage(Double value) Assertions entry point for DoublePercentageto use with isCloseTo assertions for percentages.default PercentageWithAssertions.withinPercentage(Integer value) Assertions entry point for IntegerPercentageto use with isCloseTo assertions for percentages.default PercentageWithAssertions.withinPercentage(Long value) Assertions entry point for LongPercentageto 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 actualOptionalDoublehas a value close to the expected value, within the given percentage of the expected value.
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 PercentagePercentage.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.ShouldBeEqualWithinPercentageOptionalDoubleShouldHaveValueCloseToPercentage.shouldHaveValueCloseToPercentage(OptionalDouble actual, double expectedValue, Percentage percentage) Indicates that the providedOptionalDoublehas a value, but it is not within the given positive percentage.OptionalDoubleShouldHaveValueCloseToPercentage.shouldHaveValueCloseToPercentage(OptionalDouble optional, double expectedValue, Percentage percentage, double difference) Deprecated.static <T extends Number>
ErrorMessageFactoryShouldNotBeEqualWithinPercentage.shouldNotBeEqualWithinPercentage(T actual, T expected, Percentage percentage, T difference) Creates a new.ShouldNotBeEqualWithinPercentage -
Uses of Percentage in org.assertj.core.internal
Methods in org.assertj.core.internal with parameters of type PercentageModifier and TypeMethodDescriptionvoidNumbers.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.voidNumbers.assertIsNotCloseToPercentage(AssertionInfo info, NUMBER actual, NUMBER other, Percentage percentage) Asserts that the actual value is not close to the an offset expressed as an percentage value.
OptionalDoubleShouldHaveValueCloseToPercentage.shouldHaveValueCloseToPercentage(OptionalDouble, double, Percentage)instead.