Class AssertionsOnValueEquality
java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnValueEquality
Implements the assertion methods on the equality of a value.
- Author:
- Régis Pouiller, Otoniel Isidoro
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends AbstractAssert<?>>
AisEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, byte[] expected) Verifies that the value is equal to a array of bytes.static <A extends AbstractAssert<?>>
AisEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Boolean expected) Verifies that the value is equal to a boolean.static <A extends AbstractAssert<?>>
AisEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Character expected) Verifies that the value is equal to a character.static <A extends AbstractAssert<?>>
AisEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Number expected) Verifies that the value is equal to a number.static <A extends AbstractAssert<?>>
AisEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Object expected) Verifies that the value is equal to a object.static <A extends AbstractAssert<?>>
AisEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, String expected) Verifies that the value is equal to a text.static <A extends AbstractAssert<?>>
AVerifies that the value is equal to an UUID.static <A extends AbstractAssert<?>>
AisEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue expected) Verifies that the value is equal to a date/time value.static <A extends AbstractAssert<?>>
AisEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue expected) Verifies that the value is equal to a date value.static <A extends AbstractAssert<?>>
AisEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, TimeValue expected) Verifies that the value is equal to a time value.static <A extends AbstractAssert<?>>
AVerifies that the value is equal to false boolean.static <A extends AbstractAssert<?>>
AVerifies that the value is equal to true boolean.static <A extends AbstractAssert<?>>
AVerifies that the value is equal to zero.
-
Method Details
-
isEqualTo
public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Object expected) Verifies that the value is equal to a object.- 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.value
- The value.expected
- The expected object value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is not equal to the boolean in parameter.- Since:
- 1.1.0
-
isEqualTo
public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Boolean expected) Verifies that the value is equal to a boolean.- 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.value
- The value.expected
- The expected boolean value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is not equal to the boolean in parameter.
-
isTrue
public static <A extends AbstractAssert<?>> A isTrue(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value) Verifies that the value is equal to true boolean.- 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.value
- The value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is not equal to true boolean.
-
isFalse
public static <A extends AbstractAssert<?>> A isFalse(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value) Verifies that the value is equal to false boolean.- 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.value
- The value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is not equal to false boolean.
-
isEqualTo
public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Number expected) Verifies that the value is equal to a number.- 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.value
- The value.expected
- The expected number value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is not equal to the number in parameter.
-
isEqualTo
public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, byte[] expected) Verifies that the value is equal to a array of 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.value
- The value.expected
- The expected array of bytes value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is not equal to the array of bytes in parameter.
-
isEqualTo
public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, String expected) Verifies that the value is equal to a text.- 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.value
- The value.expected
- The expected text value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is not equal to the text in parameter.- Since:
- 1.1.0
-
isEqualTo
public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Character expected) Verifies that the value is equal to a character.- 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.value
- The value.expected
- The expected character value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is not equal to the character in parameter.- Since:
- 1.2.0
-
isEqualTo
public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, UUID expected) Verifies that the value is equal to an UUID.- 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.value
- The value.expected
- The expected UUID value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is not equal to the UUID in parameter.- Since:
- 1.1.0
-
isEqualTo
public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue expected) Verifies that the value is equal to a date value.- 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.value
- The value.expected
- The expected date value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is not equal to the date value in parameter.
-
isEqualTo
public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, TimeValue expected) Verifies that the value is equal to a time value.- 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.value
- The value.expected
- The expected time value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is not equal to the time value in parameter.
-
isEqualTo
public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue expected) Verifies that the value is equal to a date/time value.- 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.value
- The value.expected
- The expected date/time value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is not equal to the date/time value in parameter.
-
isZero
public static <A extends AbstractAssert<?>> A isZero(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value) Verifies that the value is equal to zero.- 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.value
- The value.- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is not equal to zero.
-