Interface AssertOnRowCondition<T extends AssertOnRowCondition<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:
AbstractRowAssert, ChangeRowAssert, RequestRowAssert, TableRowAssert

public interface AssertOnRowCondition<T extends AssertOnRowCondition<T>>
Defines the assertion method on the a row satisfy conditions.
Author:
Julien Roy
  • Method Summary

    Modifier and Type
    Method
    Description
    Verifies that the values of a row satisfy to conditions in parameter.
  • Method Details

    • hasValuesSatisfying

      T hasValuesSatisfying(Object... expected)
      Verifies that the values of a row satisfy to conditions in parameter.

      Example where the assertion verifies that the values in the first Row of the Table satisfy to the conditions in parameter :

      
       assertThat(table).row().hasValuesSatisfying(new Condition<String>(v -> v.equals("Weaver"), "isWeaver"));
       

      Example where the assertion verifies that the values of the row at end point of the first change are equal to the values in parameter :

      
       assertThat(changes).change().rowAtEndPoint().hasValuesSatisfying(new Condition<String>(v -> v.equals("Weaver"), "isWeaver"));
       
      Parameters:
      expected - The expected conditions.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values of the row are not satisfy to the conditions in parameters.
      See Also: