Class AssertionsOnValueCondition
java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnValueCondition
Implements the assertion methods on the matching with condition.
- Author:
- Julien Roy
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends AbstractAssert<?>>
Ais(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, org.assertj.core.api.Condition<?> condition) Verifies that the value match with condition.static <A extends AbstractAssert<?>>
AisNot(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, org.assertj.core.api.Condition<?> condition) Verifies that the value not match with condition.static <A extends AbstractAssert<?>>
Asatisfies(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, org.assertj.core.api.Condition<?> condition) Verifies that the value satisfies with condition.
-
Method Details
-
is
public static <A extends AbstractAssert<?>> A is(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, org.assertj.core.api.Condition<?> condition) Verifies that the value match with condition.- 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.condition- The condition to use for validation.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not equal to the number in parameter.
-
isNot
public static <A extends AbstractAssert<?>> A isNot(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, org.assertj.core.api.Condition<?> condition) Verifies that the value not match with condition.- 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.condition- The condition to use for validation.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not equal to the number in parameter.
-
satisfies
public static <A extends AbstractAssert<?>> A satisfies(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, org.assertj.core.api.Condition<?> condition) Verifies that the value satisfies with condition.- 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.condition- The condition to use for validation.- Returns:
thisassertion object.- Throws:
AssertionError- If the value is not equal to the number in parameter.
-