Class AssertionsOnValueComparison
java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnValueComparison
Implements the assertion methods on comparisons with a value.
- Author:
- Régis Pouiller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends AbstractAssert<?>>
AisGreaterThan
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Number expected) Verifies that the value is greater than a number.static <A extends AbstractAssert<?>>
AisGreaterThanOrEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Number expected) Verifies that the value is greater than or equal to a number.static <A extends AbstractAssert<?>>
AisLessThan
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Number expected) Verifies that the value is less than a number.static <A extends AbstractAssert<?>>
AisLessThanOrEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Number expected) Verifies that the value is less than or equal to a number.
-
Method Details
-
isGreaterThan
public static <A extends AbstractAssert<?>> A isGreaterThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Number expected) Verifies that the value is greater than a number.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected number value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is less than or equal to the number in parameter.
-
isLessThan
public static <A extends AbstractAssert<?>> A isLessThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Number expected) Verifies that the value is less than a number.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected number value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is greater than or equal to the number in parameter.
-
isGreaterThanOrEqualTo
public static <A extends AbstractAssert<?>> A isGreaterThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Number expected) Verifies that the value is greater than or equal to a number.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected number value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is less than the number in parameter.
-
isLessThanOrEqualTo
public static <A extends AbstractAssert<?>> A isLessThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Number expected) Verifies that the value is less than or equal to a number.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected number value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is greater than the number in parameter.
-