Interface AssertOnValueComparison<T extends AssertOnValueComparison<T>>

Type Parameters:
T - The "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
All Known Implementing Classes:
AbstractAssertWithValues, AbstractColumnValueAssert, AbstractRowValueAssert, AbstractValueAssert, ChangeColumnValueAssert, ChangeRowValueAssert, RequestColumnValueAssert, RequestRowValueAssert, TableColumnValueAssert, TableRowValueAssert

public interface AssertOnValueComparison<T extends AssertOnValueComparison<T>>
Defines the assertion methods on comparisons with a value.
Author:
Régis Pouiller
  • Method Summary

    Modifier and Type
    Method
    Description
    Verifies that the value is greater than a number.
    Verifies that the value is greater than or equal to a number.
    isLessThan(Number expected)
    Verifies that the value is less than a number.
    Verifies that the value is less than or equal to a number.
  • Method Details

    • isGreaterThan

      T isGreaterThan(Number expected)
      Verifies that the value is greater than a number.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is greater than number 3 :

       
       assertThat(table).row().value().isGreaterThan(3);
       
       

      Example where the assertion verifies that the value in the first Column of the Row at end point of the first Change is greater than number 3 :

       
       assertThat(changes).change().rowAtEndPoint().value().isGreaterThan(3);
       
       
      Parameters:
      expected - The expected number value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is less than or equal to the number in parameter.
      See Also:
    • isLessThan

      T isLessThan(Number expected)
      Verifies that the value is less than a number.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is less than number 3 :

       
       assertThat(table).row().value().isLessThan(3);
       
       

      Example where the assertion verifies that the value in the first Column of the Row at end point of the first Change is less than number 3 :

       
       assertThat(changes).change().rowAtEndPoint().value().isLessThan(3);
       
       
      Parameters:
      expected - The expected number value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is greater than or equal to the number in parameter.
      See Also:
    • isGreaterThanOrEqualTo

      T isGreaterThanOrEqualTo(Number expected)
      Verifies that the value is greater than or equal to a number.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is greater than or equal to number 3 :

       
       assertThat(table).row().value().isGreaterThanOrEqual(3);
       
       

      Example where the assertion verifies that the value in the first Column of the Row at end point of the first Change is greater than or equal to number 3 :

       
       assertThat(changes).change().rowAtEndPoint().value().isGreaterThanOrEqual(3);
       
       
      Parameters:
      expected - The expected number value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is less than the number in parameter.
      See Also:
    • isLessThanOrEqualTo

      T isLessThanOrEqualTo(Number expected)
      Verifies that the value is less than or equal to a number.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is less than or equal to number 3 :

       
       assertThat(table).row().value().isLessThanOrEqual(3);
       
       

      Example where the assertion verifies that the value in the first Column of the Row at end point of the first Change is less than or equal to number 3 :

       
       assertThat(changes).change().rowAtEndPoint().value().isLessThanOrEqual(3);
       
       
      Parameters:
      expected - The expected number value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is greater than the number in parameter.
      See Also: