public class AssertionsOnValueCloseness extends Object
AssertOnValueCloseness
Modifier and Type | Method and Description |
---|---|
static <A extends AbstractAssert> |
isCloseTo(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value value,
DateTimeValue expected,
DateTimeValue tolerance)
Verifies that the value is close to a date/time.
|
static <A extends AbstractAssert> |
isCloseTo(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value value,
DateTimeValue expected,
DateValue tolerance)
Verifies that the value is close to a date/time.
|
static <A extends AbstractAssert> |
isCloseTo(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value value,
DateTimeValue expected,
TimeValue tolerance)
Verifies that the value is close to a date/time.
|
static <A extends AbstractAssert> |
isCloseTo(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value value,
DateValue expected,
DateTimeValue tolerance)
Verifies that the value is close to a date.
|
static <A extends AbstractAssert> |
isCloseTo(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value value,
DateValue expected,
DateValue tolerance)
Verifies that the value is close to a date.
|
static <A extends AbstractAssert> |
isCloseTo(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value value,
DateValue expected,
TimeValue tolerance)
Verifies that the value is close to a date.
|
static <A extends AbstractAssert> |
isCloseTo(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value value,
Number expected,
Number tolerance)
Verifies that the value is close to a number.
|
static <A extends AbstractAssert> |
isCloseTo(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Value value,
TimeValue expected,
TimeValue tolerance)
Verifies that the value is close to a time.
|
public static <A extends AbstractAssert> A isCloseTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, Number expected, Number tolerance)
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.tolerance
- The tolerance of the closeness.this
assertion object.AssertionError
- If the value is not equal to the number in parameter.public static <A extends AbstractAssert> A isCloseTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue expected, DateValue tolerance)
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.tolerance
- The tolerance of the closeness.this
assertion object.AssertionError
- If the value is not equal to the date in parameter.public static <A extends AbstractAssert> A isCloseTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue expected, TimeValue tolerance)
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.tolerance
- The tolerance of the closeness.this
assertion object.AssertionError
- If the value is not equal to the date in parameter.public static <A extends AbstractAssert> A isCloseTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateValue expected, DateTimeValue tolerance)
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.tolerance
- The tolerance of the closeness.this
assertion object.AssertionError
- If the value is not equal to the date in parameter.public static <A extends AbstractAssert> A isCloseTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, TimeValue expected, TimeValue tolerance)
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.tolerance
- The tolerance of the closeness.this
assertion object.AssertionError
- If the value is not equal to the date in parameter.public static <A extends AbstractAssert> A isCloseTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue expected, DateValue tolerance)
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.tolerance
- The tolerance of the closeness.this
assertion object.AssertionError
- If the value is not equal to the date in parameter.public static <A extends AbstractAssert> A isCloseTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue expected, TimeValue tolerance)
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.tolerance
- The tolerance of the closeness.this
assertion object.AssertionError
- If the value is not equal to the date in parameter.public static <A extends AbstractAssert> A isCloseTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Value value, DateTimeValue expected, DateTimeValue tolerance)
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.tolerance
- The tolerance of the closeness.this
assertion object.AssertionError
- If the value is not equal to the date in parameter.Copyright © 2015–2016 AssertJ. All rights reserved.