Interface AssertOnColumnOfChangeEquality<T extends AssertOnColumnOfChangeEquality<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:
ChangeColumnAssert

public interface AssertOnColumnOfChangeEquality<T extends AssertOnColumnOfChangeEquality<T>>
Defines the assertion methods on the equality of a column of a change.
Author:
Régis Pouiller, Otoniel Isidoro
  • Method Summary

    Modifier and Type
    Method
    Description
    hasValues(byte[] expected)
    Verifies that the values at the start point and the end point are equal to bytes.
    hasValues(byte[] expectedAtStartPoint, byte[] expectedAtEndPoint)
    Verifies that the values at the start point and the end point are equal to bytes for start point and other bytes for end point.
    hasValues(Boolean expected)
    Verifies that the values at the start point and the end point are equal to a boolean.
    hasValues(Boolean expectedAtStartPoint, Boolean expectedAtEndPoint)
    Verifies that the values at the start point and the end point are equal to a boolean for start point and another boolean for end point.
    hasValues(Character expected)
    Verifies that the values at the start point and the end point are equal to a character.
    hasValues(Character expectedAtStartPoint, Character expectedAtEndPoint)
    Verifies that the values at the start point and the end point are equal to a character for start point and another character for end point.
    hasValues(Number expected)
    Verifies that the values at the start point and the end point are equal to a number.
    hasValues(Number expectedAtStartPoint, Number expectedAtEndPoint)
    Verifies that the values at the start point and the end point are equal to a number for start point and another number for end point.
    hasValues(Object expected)
    Verifies that the values at the start point and the end point are equal to a object.
    hasValues(Object expectedAtStartPoint, Object expectedAtEndPoint)
    Verifies that the values at the start point and the end point are equal to a object for start point and another object for end point.
    hasValues(String expected)
    Verifies that the values at the start point and the end point are equal to a text.
    hasValues(String expectedAtStartPoint, String expectedAtEndPoint)
    Verifies that the values at the start point and the end point are equal to a text for start point and another text for end point.
    hasValues(UUID expected)
    Verifies that the values at the start point and the end point are equal to an UUID.
    hasValues(UUID expectedAtStartPoint, UUID expectedAtEndPoint)
    Verifies that the values at the start point and the end point are equal to an UUID for start point and another UUID for end point.
    Verifies that the values at the start point and the end point are equal to a date/time.
    hasValues(DateTimeValue expectedAtStartPoint, DateTimeValue expectedAtEndPoint)
    Verifies that the values at the start point and the end point are equal to a date/time for start point and another date/time for end point.
    hasValues(DateValue expected)
    Verifies that the values at the start point and the end point are equal to a date.
    hasValues(DateValue expectedAtStartPoint, DateValue expectedAtEndPoint)
    Verifies that the values at the start point and the end point are equal to a date for start point and another date for end point.
    hasValues(TimeValue expected)
    Verifies that the values at the start point and the end point are equal to a time.
    hasValues(TimeValue expectedAtStartPoint, TimeValue expectedAtEndPoint)
    Verifies that the values at the start point and the end point are equal to a time for start point and another time for end point.
  • Method Details

    • hasValues

      T hasValues(Object expected)
      Verifies that the values at the start point and the end point are equal to a object.

      Example where the assertion verifies that the values of the first Column of the Table are equal to Locale.FRENCH :

      
       assertThat(changes).change(1).column().hasValues(Locale.FRENCH);
       
      Parameters:
      expected - The expected object value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the object.
      See Also:
    • hasValues

      T hasValues(Object expectedAtStartPoint, Object expectedAtEndPoint)
      Verifies that the values at the start point and the end point are equal to a object for start point and another object for end point.

      Example where the assertion verifies that the values of the first Column of the Table are equal to Locale.FRENCH at start point and Locale.ENGLISH at end point :

      
       assertThat(changes).change(1).column().hasValues(Locale.FRENCH, Locale.ENGLISH);
       
      Parameters:
      expectedAtStartPoint - The expected object at start point.
      expectedAtEndPoint - The expected object at end point.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the corresponding objects.
      See Also:
    • hasValues

      T hasValues(Boolean expected)
      Verifies that the values at the start point and the end point are equal to a boolean.

      Example where the assertion verifies that the values of the first Column of the Table are equal to true :

      
       assertThat(changes).change(1).column().hasValues(true);
       
      Parameters:
      expected - The expected boolean value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the boolean.
      See Also:
    • hasValues

      T hasValues(Boolean expectedAtStartPoint, Boolean expectedAtEndPoint)
      Verifies that the values at the start point and the end point are equal to a boolean for start point and another boolean for end point.

      Example where the assertion verifies that the values of the first Column of the Table are equal to true at start point and false at end point :

      
       assertThat(changes).change(1).column().hasValues(true, false);
       
      Parameters:
      expectedAtStartPoint - The expected boolean at start point.
      expectedAtEndPoint - The expected boolean at end point.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the corresponding booleans.
      See Also:
    • hasValues

      T hasValues(Number expected)
      Verifies that the values at the start point and the end point are equal to a number.

      Example where the assertion verifies that the values of the first Column of the Table are equal to 1 :

      
       assertThat(changes).change(1).column().hasValues(1);
       
      Parameters:
      expected - The expected number value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the number.
      See Also:
    • hasValues

      T hasValues(Number expectedAtStartPoint, Number expectedAtEndPoint)
      Verifies that the values at the start point and the end point are equal to a number for start point and another number for end point.

      Example where the assertion verifies that the values of the first Column of the Table are equal to 1 at start point and 2 at end point :

      
       assertThat(changes).change(1).column().hasValues(1, 2);
       
      Parameters:
      expectedAtStartPoint - The expected number at start point.
      expectedAtEndPoint - The expected number at end point.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the corresponding numbers.
      See Also:
    • hasValues

      T hasValues(byte[] expected)
      Verifies that the values at the start point and the end point are equal to bytes.

      Example where the assertion verifies that the values of the first Column of the Table are equal to a array of bytes loaded from a file in the classpath :

      
       byte[] bytes = bytesContentFromClassPathOf("file.png");
       assertThat(changes).change(1).column().hasValues(bytes);
       
      Parameters:
      expected - The expected bytes value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the bytes.
      See Also:
    • hasValues

      T hasValues(byte[] expectedAtStartPoint, byte[] expectedAtEndPoint)
      Verifies that the values at the start point and the end point are equal to bytes for start point and other bytes for end point.

      Example where the assertion verifies that the values of the first Column of the Table are equal to a array of bytes loaded from a file in the classpath at start point and another array at end point :

      
       byte[] bytes = bytesContentFromClassPathOf("file.png");
       byte[] bytes2 = bytesContentFromClassPathOf("file2.png");
       assertThat(changes).change(1).column().hasValues(bytes, bytes2);
       
      Parameters:
      expectedAtStartPoint - The expected bytes at start point.
      expectedAtEndPoint - The expected bytes at end point.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the corresponding bytes.
      See Also:
    • hasValues

      T hasValues(String expected)
      Verifies that the values at the start point and the end point are equal to a text.

      Example where the assertion verifies that the values of the first Column of the Table are equal to "Ellen Louise Ripley" :

      
       assertThat(changes).change(1).column().hasValues("Ellen Louise Ripley");
       
      Parameters:
      expected - The expected text value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the text.
      See Also:
    • hasValues

      T hasValues(String expectedAtStartPoint, String expectedAtEndPoint)
      Verifies that the values at the start point and the end point are equal to a text for start point and another text for end point.

      Example where the assertion verifies that the values of the first Column of the Table are equal to "Sigourney" at start point and "Susan Alexandra" at end point :

      
       assertThat(changes).change(1).column().hasValues("Sigourney", "Susan Alexandra");
       
      Parameters:
      expectedAtStartPoint - The expected text at start point.
      expectedAtEndPoint - The expected text at end point.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the corresponding texts.
      See Also:
    • hasValues

      T hasValues(Character expected)
      Verifies that the values at the start point and the end point are equal to a character.

      Example where the assertion verifies that the values of the first Column of the Table are equal to 'c' :

      
       assertThat(changes).change(1).column().hasValues('c');
       
      Parameters:
      expected - The expected character value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the character.
      Since:
      1.2.0
      See Also:
    • hasValues

      T hasValues(Character expectedAtStartPoint, Character expectedAtEndPoint)
      Verifies that the values at the start point and the end point are equal to a character for start point and another character for end point.

      Example where the assertion verifies that the values of the first Column of the Table are equal to 'c' at start point and 'S' at end point :

      
       assertThat(changes).change(1).column().hasValues('c', 'S');
       
      Parameters:
      expectedAtStartPoint - The expected character at start point.
      expectedAtEndPoint - The expected character at end point.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the corresponding characters.
      Since:
      1.2.0
      See Also:
    • hasValues

      T hasValues(UUID expected)
      Verifies that the values at the start point and the end point are equal to an UUID.

      Example where the assertion verifies that the values of the first Column of the Table are equal to 30B443AE-C0C9-4790-9BEC-CE1380808435 :

      
       assertThat(changes).change(1).column().hasValues(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"));
       
      Parameters:
      expected - The expected UUID value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the UUID.
      Since:
      1.1.0
      See Also:
    • hasValues

      T hasValues(UUID expectedAtStartPoint, UUID expectedAtEndPoint)
      Verifies that the values at the start point and the end point are equal to an UUID for start point and another UUID for end point.

      Example where the assertion verifies that the values of the first Column of the Table are equal to 30B443AE-C0C9-4790-9BEC-CE1380808435 at start point and 16319617-AE95-4087-9264-D3D21BF611B6 at end point :

      
       assertThat(changes).change(1).column().hasValues(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"), UUID.fromString("16319617-AE95-4087-9264-D3D21BF611B6"));
       
      Parameters:
      expectedAtStartPoint - The expected UUID at start point.
      expectedAtEndPoint - The expected UUID at end point.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the corresponding UUIDs.
      Since:
      1.1.0
      See Also:
    • hasValues

      T hasValues(DateValue expected)
      Verifies that the values at the start point and the end point are equal to a date.

      Example where the assertion verifies that the values of the first Column of the Table are equal to 12/23/2007 :

      
       assertThat(changes).change(1).column().hasValues(DateValue.of(2007, 12, 23));
       
      Parameters:
      expected - The expected date value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the date.
      See Also:
    • hasValues

      T hasValues(DateValue expectedAtStartPoint, DateValue expectedAtEndPoint)
      Verifies that the values at the start point and the end point are equal to a date for start point and another date for end point.

      Example where the assertion verifies that the values of the first Column of the Table are equal to 12/23/2007 at start point and 07/25/2002 at end point :

      
       assertThat(changes).change(1).column().hasValues(DateValue.of(2007, 12, 23), DateValue.of(2002, 7, 25));
       
      Parameters:
      expectedAtStartPoint - The expected date at start point.
      expectedAtEndPoint - The expected date at end point.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the corresponding dates.
      See Also:
    • hasValues

      T hasValues(TimeValue expected)
      Verifies that the values at the start point and the end point are equal to a time.

      Example where the assertion verifies that the values of the first Column of the Table are equal to 09:01AM :

      
       assertThat(changes).change(1).column().hasValues(TimeValue.of(9, 1));
       
      Parameters:
      expected - The expected time value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the time.
      See Also:
    • hasValues

      T hasValues(TimeValue expectedAtStartPoint, TimeValue expectedAtEndPoint)
      Verifies that the values at the start point and the end point are equal to a time for start point and another time for end point.

      Example where the assertion verifies that the values of the first Column of the Table are equal to 09:01AM at start point and 03:30AM at end point :

      
       assertThat(changes).change(1).column().hasValues(TimeValue.of(9, 1), TimeValue.of(3, 30));
       
      Parameters:
      expectedAtStartPoint - The expected time at start point.
      expectedAtEndPoint - The expected time at end point.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the corresponding times.
      See Also:
    • hasValues

      T hasValues(DateTimeValue expected)
      Verifies that the values at the start point and the end point are equal to a date/time.

      Example where the assertion verifies that the values of the first Column of the Table are equal to 12/23/2007 09:01AM :

      
       assertThat(changes).change(1).column().hasValues(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(9, 1)));
       
      Parameters:
      expected - The expected date/time value.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the date/time.
      See Also:
    • hasValues

      T hasValues(DateTimeValue expectedAtStartPoint, DateTimeValue expectedAtEndPoint)
      Verifies that the values at the start point and the end point are equal to a date/time for start point and another date/time for end point.

      Example where the assertion verifies that the values of the first Column of the Table are equal to 12/23/2007 09:01AM at start point and 07/25/2002 00:00AM at end point :

      
       assertThat(changes).change(1).column().hasValues(DateTimeValue.of(DateValue.of(2007, 12, 23), TimeValue.of(9, 1)), DateTimeValue.of(DateValue.of(2002, 7, 25)));
       
      Parameters:
      expectedAtStartPoint - The expected date/time at start point.
      expectedAtEndPoint - The expected date/time at end point.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the values at start point and at end point are not equal to the corresponding dates/times.
      See Also: