Class AssertionsOnColumnContent
java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnColumnContent
Implements the assertion methods on the content of a column.
- Since:
- 1.1.0
- Author:
- Régis Pouiller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends AbstractAssert<?>>
AcontainsValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, byte[]... expected) Verifies that the column contains bytes.static <A extends AbstractAssert<?>>
AcontainsValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Boolean... expected) Verifies that the column contains booleans.static <A extends AbstractAssert<?>>
AcontainsValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Character... expected) Verifies that the column contains characters.static <A extends AbstractAssert<?>>
AcontainsValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Number... expected) Verifies that the column contains numbers.static <A extends AbstractAssert<?>>
AcontainsValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Object... expected) Verifies that the column contains objects.static <A extends AbstractAssert<?>>
AcontainsValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, String... expected) Verifies that the column contains texts.static <A extends AbstractAssert<?>>
AcontainsValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, UUID... expected) Verifies that the column contains UUIDs.static <A extends AbstractAssert<?>>
AcontainsValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, DateTimeValue... expected) Verifies that the column contains date/time values.static <A extends AbstractAssert<?>>
AcontainsValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, DateValue... expected) Verifies that the column contains date values.static <A extends AbstractAssert<?>>
AcontainsValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, TimeValue... expected) Verifies that the column contains time values.
-
Method Details
-
containsValues
public static <A extends AbstractAssert<?>> A containsValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Object... expected) Verifies that the column contains objects.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.valuesList
- The list of values.expected
- The expected object values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the column are not containing the objects in parameter.
-
containsValues
public static <A extends AbstractAssert<?>> A containsValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Boolean... expected) Verifies that the column contains booleans.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.valuesList
- The list of values.expected
- The expected boolean values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the column are not containing the booleans in parameter.
-
containsValues
public static <A extends AbstractAssert<?>> A containsValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Number... expected) Verifies that the column contains numbers.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.valuesList
- The list of values.expected
- The expected numbers values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the column are not containing the numbers in parameter.
-
containsValues
public static <A extends AbstractAssert<?>> A containsValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, byte[]... expected) Verifies that the column contains bytes.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.valuesList
- The list of values.expected
- The expected bytes values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the column are not containing the bytes in parameter.
-
containsValues
public static <A extends AbstractAssert<?>> A containsValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, String... expected) Verifies that the column contains texts.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.valuesList
- The list of values.expected
- The expected text values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the column are not containing the texts in parameter.
-
containsValues
public static <A extends AbstractAssert<?>> A containsValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Character... expected) Verifies that the column contains characters.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.valuesList
- The list of values.expected
- The expected character values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the column are not containing the characters in parameter.- Since:
- 1.2.0
-
containsValues
public static <A extends AbstractAssert<?>> A containsValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, UUID... expected) Verifies that the column contains UUIDs.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.valuesList
- The list of values.expected
- The expected UUIDs values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the column are not containing the UUIDs in parameter.
-
containsValues
public static <A extends AbstractAssert<?>> A containsValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, DateValue... expected) Verifies that the column contains date values.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.valuesList
- The list of values.expected
- The expected date values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the column are not containing the date values in parameter.
-
containsValues
public static <A extends AbstractAssert<?>> A containsValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, TimeValue... expected) Verifies that the column contains time values.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.valuesList
- The list of values.expected
- The expected time values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the column are not containing the time values in parameter.
-
containsValues
public static <A extends AbstractAssert<?>> A containsValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, DateTimeValue... expected) Verifies that the column contains date/time values.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.valuesList
- The list of values.expected
- The expected date/time values.- Returns:
this
assertion object.- Throws:
AssertionError
- If the column are not containing the date/time values in parameter.
-