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
- Author:
- Régis Pouiller, Otoniel Isidoro
-
Method Summary
Modifier and TypeMethodDescriptionhasValues
(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.Verifies that the values at the start point and the end point are equal to a boolean.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.Verifies that the values at the start point and the end point are equal to a character.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.Verifies that the values at the start point and the end point are equal to a number.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.Verifies that the values at the start point and the end point are equal to a object.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.Verifies that the values at the start point and the end point are equal to a text.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.Verifies that the values at the start point and the end point are equal to an UUID.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.hasValues
(DateTimeValue expected) 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.Verifies that the values at the start point and the end point are equal to a date.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.Verifies that the values at the start point and the end point are equal to a time.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
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 theTable
are equal toLocale.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
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 theTable
are equal toLocale.FRENCH
at start point andLocale.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
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 theTable
are equal totrue
: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
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 theTable
are equal totrue
at start point andfalse
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
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 theTable
are equal to1
: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
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 theTable
are equal to1
at start point and2
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
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 theTable
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
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 theTable
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
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 theTable
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
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 theTable
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
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 theTable
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
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 theTable
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
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 theTable
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
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 theTable
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
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 theTable
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
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 theTable
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
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 theTable
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
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 theTable
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
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 theTable
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
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 theTable
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:
-