public class AssertionsOnValueEquality extends Object
AssertOnValueEquality
Modifier and Type | Method and Description |
---|---|
static <A extends AbstractAssert<?>> |
isEqualTo(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<?>> |
isEqualTo(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<?>> |
isEqualTo(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<?>> |
isEqualTo(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<?>> |
isEqualTo(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<?>> |
isEqualTo(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<?>> |
isEqualTo(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<?>> |
isEqualTo(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<?>> |
isEqualTo(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<?>> |
isEqualTo(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value value,
UUID expected)
Verifies that the value is equal to an UUID.
|
static <A extends AbstractAssert<?>> |
isFalse(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value value)
Verifies that the value is equal to false boolean.
|
static <A extends AbstractAssert<?>> |
isTrue(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value value)
Verifies that the value is equal to true boolean.
|
static <A extends AbstractAssert<?>> |
isZero(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value value)
Verifies that the value is equal to zero.
|
public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Object expected)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected object value.this
assertion object.AssertionError
- If the value is not equal to the boolean in parameter.public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Boolean expected)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected boolean value.this
assertion object.AssertionError
- If the value is not equal to the boolean in parameter.public static <A extends AbstractAssert<?>> A isTrue(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.this
assertion object.AssertionError
- If the value is not equal to true boolean.public static <A extends AbstractAssert<?>> A isFalse(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.this
assertion object.AssertionError
- If the value is not equal to false boolean.public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Number expected)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected number value.this
assertion object.AssertionError
- If the value is not equal to the number in parameter.public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, byte[] expected)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected array of bytes value.this
assertion object.AssertionError
- If the value is not equal to the array of bytes in parameter.public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, String expected)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected text value.this
assertion object.AssertionError
- If the value is not equal to the text in parameter.public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Character expected)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected character value.this
assertion object.AssertionError
- If the value is not equal to the character in parameter.public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, UUID expected)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected UUID value.this
assertion object.AssertionError
- If the value is not equal to the UUID in parameter.public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue expected)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected date value.this
assertion object.AssertionError
- If the value is not equal to the date value in parameter.public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, TimeValue expected)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected time value.this
assertion object.AssertionError
- If the value is not equal to the time value in parameter.public static <A extends AbstractAssert<?>> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue expected)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.expected
- The expected date/time value.this
assertion object.AssertionError
- If the value is not equal to the date/time value in parameter.public static <A extends AbstractAssert<?>> A isZero(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.value
- The value.this
assertion object.AssertionError
- If the value is not equal to zero.Copyright © 2020 AssertJ. All rights reserved.