Class AssertionsOnColumnEquality
java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnColumnEquality
Implements the assertion methods on the equality of a column.
- Author:
- Régis Pouiller, Otoniel Isidoro
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends AbstractAssert<?>>
AhasValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, byte[]... expected) Verifies that the values of a column are equal to bytes.static <A extends AbstractAssert<?>>
AhasValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Boolean... expected) Verifies that the values of a column are equal to booleans.static <A extends AbstractAssert<?>>
AhasValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Character... expected) Verifies that the values of a column are equal to characters.static <A extends AbstractAssert<?>>
AhasValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Number... expected) Verifies that the values of a column are equal to numbers.static <A extends AbstractAssert<?>>
AhasValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Object... expected) Verifies that the values of a column are equal to objects.static <A extends AbstractAssert<?>>
AhasValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, String... expected) Verifies that the values of a column are equal to texts.static <A extends AbstractAssert<?>>
AhasValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, UUID... expected) Verifies that the values of a column are equal to UUIDs.static <A extends AbstractAssert<?>>
AhasValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, DateTimeValue... expected) Verifies that the values of a column are equal to date/time values.static <A extends AbstractAssert<?>>
AhasValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, DateValue... expected) Verifies that the values of a column are equal to date values.static <A extends AbstractAssert<?>>
AhasValues
(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, TimeValue... expected) Verifies that the values of a column are equal to time values.
-
Method Details
-
hasValues
public static <A extends AbstractAssert<?>> A hasValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Object... expected) Verifies that the values of a column are equal to 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 values of the column are not equal to the objects in parameter.
-
hasValues
public static <A extends AbstractAssert<?>> A hasValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Boolean... expected) Verifies that the values of a column are equal to 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 values of the column are not equal to the booleans in parameter.
-
hasValues
public static <A extends AbstractAssert<?>> A hasValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Number... expected) Verifies that the values of a column are equal to 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 values of the column are not equal to the numbers in parameter.
-
hasValues
public static <A extends AbstractAssert<?>> A hasValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, byte[]... expected) Verifies that the values of a column are equal to 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 values of the column are not equal to the bytes in parameter.
-
hasValues
public static <A extends AbstractAssert<?>> A hasValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, String... expected) Verifies that the values of a column are equal to 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 values of the column are not equal to the texts in parameter.
-
hasValues
public static <A extends AbstractAssert<?>> A hasValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, Character... expected) Verifies that the values of a column are equal to 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 values of the column are not equal to the characters in parameter.- Since:
- 1.2.0
-
hasValues
public static <A extends AbstractAssert<?>> A hasValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, UUID... expected) Verifies that the values of a column are equal to 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 values of the column are not equal to the UUIDs in parameter.- Since:
- 1.1.0
-
hasValues
public static <A extends AbstractAssert<?>> A hasValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, DateValue... expected) Verifies that the values of a column are equal to 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 values of the column are not equal to the date values in parameter.
-
hasValues
public static <A extends AbstractAssert<?>> A hasValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, TimeValue... expected) Verifies that the values of a column are equal to 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 values of the column are not equal to the time values in parameter.
-
hasValues
public static <A extends AbstractAssert<?>> A hasValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList, DateTimeValue... expected) Verifies that the values of a column are equal to 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 values of the column are not equal to the date/time values in parameter.
-