Class AssertionsOnValueCondition

java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnValueCondition

public class AssertionsOnValueCondition extends Object
Implements the assertion methods on the matching with condition.
Author:
Julien Roy
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      this assertion 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:
      this assertion 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:
      this assertion object.
      Throws:
      AssertionError - If the value is not equal to the number in parameter.