Interface AssertOnColumnEquality<T extends AssertOnColumnEquality<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:
AbstractColumnAssert
,RequestColumnAssert
,TableColumnAssert
- Author:
- Régis Pouiller, Otoniel Isidoro
-
Method Summary
Modifier and TypeMethodDescriptionhasValues
(byte[]... expected) Verifies that the values of a column are equal to bytes.Verifies that the values of a column are equal to booleans.Verifies that the values of a column are equal to characters.Verifies that the values of a column are equal to numbers.Verifies that the values of a column are equal to objects.Verifies that the values of a column are equal to texts.Verifies that the values of a column are equal to UUIDs.hasValues
(DateTimeValue... expected) Verifies that the values of a column are equal to date/time values.Verifies that the values of a column are equal to date values.Verifies that the values of a column are equal to time values.
-
Method Details
-
hasValues
Verifies that the values of a column are equal to objects.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the objects in parameter :assertThat(table).column().hasValues(Locale.FRENCH, Locale.ENGLISH, Locale.FRENCH);
- Parameters:
expected
- The expected object values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the values of the column are not equal to the objects in parameter.- See Also:
-
hasValues
Verifies that the values of a column are equal to booleans.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the booleans in parameter :assertThat(table).column().hasValues(true, false, true);
- Parameters:
expected
- The expected boolean values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the values of the column are not equal to the booleans in parameter.- See Also:
-
hasValues
Verifies that the values of a column are equal to numbers.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the numbers in parameter :assertThat(table).column().hasValues(5, 10.5, 6);
- Parameters:
expected
- The expected numbers values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the values of the column are not equal to the numbers in parameter.- See Also:
-
hasValues
Verifies that the values of a column are equal to bytes.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to arrays of bytes loaded from files in the classpath :byte[] bytes1 = bytesContentFromClassPathOf("file1.png"); byte[] bytes2 = bytesContentFromClassPathOf("file2.png"); assertThat(table).column().hasValues(bytes1, bytes2);
- Parameters:
expected
- The expected bytes values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the values of the column are not equal to the bytes in parameter.- See Also:
-
hasValues
Verifies that the values of a column are equal to texts.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the texts in parameter :assertThat(table).column().hasValues("text", "text2", "text3");
- Parameters:
expected
- The expected text values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the values of the column are not equal to the texts in parameter.- See Also:
-
hasValues
Verifies that the values of a column are equal to characters.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the characters in parameter :assertThat(table).column().hasValues('t', 'e', 'x', 't');
- Parameters:
expected
- The expected character values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the values of the column are not equal to the characters in parameter.- Since:
- 1.2.0
- See Also:
-
hasValues
Verifies that the values of a column are equal to UUIDs.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the UUIDs in parameter :assertThat(table).column().hasValues(UUID.fromString("30B443AE-C0C9-4790-9BEC-CE1380808435"), UUID.fromString("16319617-AE95-4087-9264-D3D21BF611B6"), UUID.fromString("D735221B-5DE5-4112-AA1E-49090CB75ADA"));
- Parameters:
expected
- The expected UUID values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the values of the column are not equal to the UUIDs in parameter.- Since:
- 1.1.0
- See Also:
-
hasValues
Verifies that the values of a column are equal to date values.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the date values in parameter :assertThat(table).column().hasValues(DateValue.of(2014, 7, 7), DateValue.of(2014, 10, 3), DateValue.of(2014, 12, 23));
- Parameters:
expected
- The expected date values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the values of the column are not equal to the date values in parameter.- See Also:
-
hasValues
Verifies that the values of a column are equal to time values.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the time values in parameter :assertThat(table).column().hasValues(TimeValue.of(21, 29, 30), TimeValue.of(10, 1, 25), TimeValue.of(9, 1));
- Parameters:
expected
- The expected time values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the values of the column are not equal to the time values in parameter.- See Also:
-
hasValues
Verifies that the values of a column are equal to date/time values.Example where the assertion verifies that the values in the first
Column
of theTable
are equal to the date/time values in parameter :assertThat(table).column().hasValues(DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(21, 29)), DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(10, 1, 25)), DateTimeValue.of(DateValue.of(2014, 7, 7), TimeValue.of(9, 1)));
- Parameters:
expected
- The expected date/time values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the values of the column are not equal to the date/time values in parameter.- See Also:
-