Class AssertionsOnColumnClass

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

public class AssertionsOnColumnClass extends Object
Implements the assertion methods on the class of a column.
Author:
Régis Pouiller
See Also:
  • Method Details Link icon

    • isOfClass Link icon

      public static <A extends AbstractAssert<?>> A isOfClass(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Class<?> expected, boolean lenient)
      Verifies that the class of the values of the column is equal to the class in parameter.
      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.
      valuesList - The list of values.
      expected - The expected class to compare to.
      lenient - true if the test is lenient : if the class of a value is not identified (for example when the value is null), it consider that it is ok.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the class of the column is different to the class in parameter.
      AssertJDBException - If the class is null.
      Since:
      1.1.0