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,
Object 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,
Object 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,
Object 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,
Object 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,
Object 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,
Object 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,
Object value,
TimeValue expected)
Verifies that the value is equal to a time value.
|
static <A extends AbstractAssert> |
isFalse(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Object value)
Verifies that the value is equal to false boolean.
|
static <A extends AbstractAssert> |
isTrue(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Object value)
Verifies that the value is equal to true boolean.
|
static <A extends AbstractAssert> |
isZero(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Object value)
Verifies that the value is equal to zero.
|
public static <A extends AbstractAssert> A isEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Object 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, Object 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, Object 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, Object 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, Object 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, Object 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, Object 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, Object 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, Object 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, Object 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 © 2015 AssertJ. All Rights Reserved.