T - The "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation"
for more details.public interface AssertOnColumnEquality<T extends AssertOnColumnEquality<T>>
| Modifier and Type | Method and Description |
|---|---|
T |
hasValues(Boolean... expected)
Verifies that the values of a column are equal to booleans.
|
T |
hasValues(byte[]... expected)
Verifies that the values of a column are equal to bytes.
|
T |
hasValues(Character... expected)
Verifies that the values of a column are equal to characters.
|
T |
hasValues(DateTimeValue... expected)
Verifies that the values of a column are equal to date/time values.
|
T |
hasValues(DateValue... expected)
Verifies that the values of a column are equal to date values.
|
T |
hasValues(Number... expected)
Verifies that the values of a column are equal to numbers.
|
T |
hasValues(Object... expected)
Verifies that the values of a column are equal to objects.
|
T |
hasValues(String... expected)
Verifies that the values of a column are equal to texts.
|
T |
hasValues(TimeValue... expected)
Verifies that the values of a column are equal to time values.
|
T |
hasValues(UUID... expected)
Verifies that the values of a column are equal to UUIDs.
|
T hasValues(Object... expected)
Example where the assertion verifies that the values in the first Column of the Table are equal to
the objects in parameter :
assertThat(table).column().hasValues(Locale.FRENCH, Locale.ENGLISH, Locale.FRENCH);
expected - The expected object values.this assertion object.AssertionError - If the values of the column are not equal to the objects in parameter.AbstractColumnAssert.hasValues(Object...)T hasValues(Boolean... expected)
Example where the assertion verifies that the values in the first Column of the Table are equal to
the booleans in parameter :
assertThat(table).column().hasValues(true, false, true);
expected - The expected boolean values.this assertion object.AssertionError - If the values of the column are not equal to the booleans in parameter.AbstractColumnAssert.hasValues(Boolean...)T hasValues(Number... expected)
Example where the assertion verifies that the values in the first Column of the Table are equal to
the numbers in parameter :
assertThat(table).column().hasValues(5, 10.5, 6);
expected - The expected numbers values.this assertion object.AssertionError - If the values of the column are not equal to the numbers in parameter.AbstractColumnAssert.hasValues(Number...)T hasValues(byte[]... expected)
Example where the assertion verifies that the values in the first Column of the Table 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);
expected - The expected bytes values.this assertion object.AssertionError - If the values of the column are not equal to the bytes in parameter.org.assertj.db.api.AbstractColumnAssert#hasValues(byte[]...)T hasValues(String... expected)
Example where the assertion verifies that the values in the first Column of the Table are equal to
the texts in parameter :
assertThat(table).column().hasValues("text", "text2", "text3");
expected - The expected text values.this assertion object.AssertionError - If the values of the column are not equal to the texts in parameter.AbstractColumnAssert.hasValues(String...)T hasValues(Character... expected)
Example where the assertion verifies that the values in the first Column of the Table are equal to
the characters in parameter :
assertThat(table).column().hasValues('t', 'e', 'x', 't');
expected - The expected character values.this assertion object.AssertionError - If the values of the column are not equal to the characters in parameter.AbstractColumnAssert.hasValues(Character...)T hasValues(UUID... expected)
Example where the assertion verifies that the values in the first Column of the Table 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"));
expected - The expected UUID values.this assertion object.AssertionError - If the values of the column are not equal to the UUIDs in parameter.AbstractColumnAssert.hasValues(UUID...)T hasValues(DateValue... expected)
Example where the assertion verifies that the values in the first Column of the Table 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));
expected - The expected date values.this assertion object.AssertionError - If the values of the column are not equal to the date values in parameter.AbstractColumnAssert.hasValues(DateValue...)T hasValues(TimeValue... expected)
Example where the assertion verifies that the values in the first Column of the Table 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));
expected - The expected time values.this assertion object.AssertionError - If the values of the column are not equal to the time values in parameter.AbstractColumnAssert.hasValues(TimeValue...)T hasValues(DateTimeValue... expected)
Example where the assertion verifies that the values in the first Column of the Table 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)));
expected - The expected date/time values.this assertion object.AssertionError - If the values of the column are not equal to the date/time values in parameter.AbstractColumnAssert.hasValues(DateTimeValue...)Copyright © 2015–2017 AssertJ. All rights reserved.