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 AssertOnColumnContent<T extends AssertOnColumnContent<T>>
Modifier and Type | Method and Description |
---|---|
T |
containsValues(Boolean... expected)
Verifies that the values of a column contains booleans.
|
T |
containsValues(byte[]... expected)
Verifies that the values of a column contains bytes.
|
T |
containsValues(Character... expected)
Verifies that the values of a column contains characters.
|
T |
containsValues(DateTimeValue... expected)
Verifies that the values of a column contains date/time values.
|
T |
containsValues(DateValue... expected)
Verifies that the values of a column contains date values.
|
T |
containsValues(Number... expected)
Verifies that the values of a column contains numbers.
|
T |
containsValues(Object... expected)
Verifies that the values of a column contains objects.
|
T |
containsValues(String... expected)
Verifies that the values of a column contains texts.
|
T |
containsValues(TimeValue... expected)
Verifies that the values of a column contains time values.
|
T |
containsValues(UUID... expected)
Verifies that the values of a column containsUUIDs.
|
T containsValues(Object... expected)
Example where the assertion verifies that the values in the first Column
of the Table
are containing
the objects in parameter :
assertThat(table).column().containsValues(Locale.FRENCH, Locale.ENGLISH, Locale.FRENCH);
expected
- The expected object values.this
assertion object.AssertionError
- If the column are not containing the objects in parameter.AbstractColumnAssert.containsValues(Object...)
T containsValues(Boolean... expected)
Example where the assertion verifies that the values in the first Column
of the Table
are containing
the booleans in parameter :
assertThat(table).column().containsValues(true, false, true);
expected
- The expected boolean values.this
assertion object.AssertionError
- If the column are not containing the booleans in parameter.AbstractColumnAssert.containsValues(Boolean...)
T containsValues(Number... expected)
Example where the assertion verifies that the values in the first Column
of the Table
are containing
the numbers in parameter :
assertThat(table).column().containsValues(5, 10.5, 6);
expected
- The expected numbers values.this
assertion object.AssertionError
- If the column are not containing the numbers in parameter.AbstractColumnAssert.containsValues(Number...)
T containsValues(byte[]... expected)
Example where the assertion verifies that the values in the first Column
of the Table
are containing
arrays of bytes loaded from files in the classpath :
byte[] bytes1 = bytesContentFromClassPathOf("file1.png");
byte[] bytes2 = bytesContentFromClassPathOf("file2.png");
assertThat(table).column().containsValues(bytes1, bytes2);
expected
- The expected bytes values.this
assertion object.AssertionError
- If the column are not containing the bytes in parameter.org.assertj.db.api.AbstractColumnAssert#containsValues(byte[]...)
T containsValues(String... expected)
Example where the assertion verifies that the values in the first Column
of the Table
are containing
the texts in parameter :
assertThat(table).column().containsValues("text", "text2", "text3");
expected
- The expected text values.this
assertion object.AssertionError
- If the column are not containing the texts in parameter.AbstractColumnAssert.containsValues(String...)
T containsValues(Character... expected)
Example where the assertion verifies that the values in the first Column
of the Table
are containing
the characters in parameter :
assertThat(table).column().containsValues('t', 'e', 'x', 't');
expected
- The expected character values.this
assertion object.AssertionError
- If the column are not containing the characters in parameter.AbstractColumnAssert.containsValues(Character...)
T containsValues(UUID... expected)
Example where the assertion verifies that the values in the first Column
of the Table
are containing
the UUIDs in parameter :
assertThat(table).column().containsValues(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 column are not containing the UUIDs in parameter.AbstractColumnAssert.containsValues(java.util.UUID...)
T containsValues(DateValue... expected)
Example where the assertion verifies that the values in the first Column
of the Table
are containing
the date values in parameter :
assertThat(table).column().containsValues(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 column are not containing the date values in parameter.AbstractColumnAssert.containsValues(org.assertj.db.type.DateValue...)
T containsValues(TimeValue... expected)
Example where the assertion verifies that the values in the first Column
of the Table
are containing
the time values in parameter :
assertThat(table).column().containsValues(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 column are not containing the time values in parameter.AbstractColumnAssert.containsValues(org.assertj.db.type.TimeValue...)
T containsValues(DateTimeValue... expected)
Example where the assertion verifies that the values in the first Column
of the Table
are containing
the date/time values in parameter :
assertThat(table).column().containsValues(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 column are not containing the date/time values in parameter.AbstractColumnAssert.containsValues(org.assertj.db.type.DateTimeValue...)
Copyright © 2020 AssertJ. All rights reserved.