Interface AssertOnNumberOfChanges<T extends AssertOnNumberOfChanges<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:
ChangesAssert

public interface AssertOnNumberOfChanges<T extends AssertOnNumberOfChanges<T>>
Defines the assertion method on the number of changes.
Author:
Régis Pouiller
  • Method Details

    • hasNumberOfChanges

      T hasNumberOfChanges(int expected)
      Verifies that the number of changes is equal to the number in parameter.

      Example where the assertion verifies that there are 8 changes :

       
       assertThat(changes).hasNumberOfChanges(8);
       
       
      Parameters:
      expected - The number to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the number of changes is different to the number in parameter.
      See Also:
    • hasNumberOfChangesGreaterThan

      T hasNumberOfChangesGreaterThan(int expected)
      Verifies that the number of changes is greater than the number in parameter.

      Example where the assertion verifies that there are greater than 8 changes :

       
       assertThat(changes).hasNumberOfChangesGreaterThan(8);
       
       
      Parameters:
      expected - The number to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the number of changes is less than or equal to the number in parameter.
      Since:
      1.1.0
      See Also:
    • hasNumberOfChangesLessThan

      T hasNumberOfChangesLessThan(int expected)
      Verifies that the number of changes is less than the number in parameter.

      Example where the assertion verifies that there are less than 8 changes :

       
       assertThat(changes).hasNumberOfChangesLessThan(8);
       
       
      Parameters:
      expected - The number to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the number of changes is greater than or equal to the number in parameter.
      Since:
      1.1.0
      See Also:
    • hasNumberOfChangesGreaterThanOrEqualTo

      T hasNumberOfChangesGreaterThanOrEqualTo(int expected)
      Verifies that the number of changes is greater than or equal to the number in parameter.

      Example where the assertion verifies that there are at least 8 changes :

       
       assertThat(changes).hasNumberOfChangesGreaterThanOrEqualTo(8);
       
       
      Parameters:
      expected - The number to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the number of changes is less than the number in parameter.
      Since:
      1.1.0
      See Also:
    • hasNumberOfChangesLessThanOrEqualTo

      T hasNumberOfChangesLessThanOrEqualTo(int expected)
      Verifies that the number of changes is less than or equal to the number in parameter.

      Example where the assertion verifies that there are at most 8 changes :

       
       assertThat(changes).hasNumberOfChangesLessThanOrEqualTo(8);
       
       
      Parameters:
      expected - The number to compare to.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the number of changes is greater than the number in parameter.
      Since:
      1.1.0
      See Also: