R
- The return type.public class FluentZonedDateTimeAssertion<R> extends FluentComparableAssertion<R>
ZonedDateTime
objects.
Constructor and Description |
---|
FluentZonedDateTimeAssertion(Assertion creator,
ZonedDateTime value,
R returns)
Constructor.
|
FluentZonedDateTimeAssertion(ZonedDateTime value,
R returns)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
R |
isAfter(ZonedDateTime value)
Asserts that the value is after the specified value.
|
R |
isAfterNow()
Asserts that the value is after the current date.
|
R |
isBefore(ZonedDateTime value)
Asserts that the value is before the specified value.
|
R |
isBeforeNow()
Asserts that the value is before the current date.
|
R |
isBetween(ZonedDateTime lower,
ZonedDateTime upper)
Asserts that the value is between (exclusive) the specified upper and lower values.
|
R |
isEqual(ZonedDateTime value,
ChronoUnit precision)
Asserts that the value equals the specified value at the specified precision.
|
FluentZonedDateTimeAssertion<R> |
msg(String msg,
Object... args)
Allows to to specify the assertion failure message.
|
FluentZonedDateTimeAssertion<R> |
stderr()
If an error occurs, send the error message to STDERR.
|
FluentZonedDateTimeAssertion<R> |
stdout()
If an error occurs, send the error message to STDOUT.
|
compareTo, isBetween, isGreaterThan, isGreaterThanOrEqual, isGt, isGte, isLessThan, isLessThanOrEqual, isLt, isLte
doesNotEqual, doesNotExist, equivalent, exists, is, isAny, isEqual, isNot, isNotAny, isNotNull, isNull, isType, json, jsonSorted, passes, passes, sameAs, sameAsSerialized, sameAsSorted, serialized, string, string, string
returns
assertNotNull, assertNotNull, className, error
public FluentZonedDateTimeAssertion(ZonedDateTime value, R returns)
value
- The value being tested.returns
- The object to return after the test.public FluentZonedDateTimeAssertion(Assertion creator, ZonedDateTime value, R returns)
creator
- The assertion that created this assertion.value
- The value being tested.returns
- The object to return after the test.public R isEqual(ZonedDateTime value, ChronoUnit precision) throws AssertionError
value
- The value to check against.precision
- The precision (e.g. ChronoUnit.SECONDS
.AssertionError
- If assertion failed.public R isAfter(ZonedDateTime value) throws AssertionError
value
- The values to check against.AssertionError
- If assertion failed.public R isAfterNow() throws AssertionError
AssertionError
- If assertion failed.public R isBefore(ZonedDateTime value) throws AssertionError
value
- The values to check against.AssertionError
- If assertion failed.public R isBeforeNow() throws AssertionError
AssertionError
- If assertion failed.public R isBetween(ZonedDateTime lower, ZonedDateTime upper) throws AssertionError
lower
- The lower value to check against.upper
- The upper value to check against.AssertionError
- If assertion failed.public FluentZonedDateTimeAssertion<R> msg(String msg, Object... args)
Assertion
String can contain
msg
in class FluentComparableAssertion<R>
msg
- The assertion failure message.args
- Optional message arguments.public FluentZonedDateTimeAssertion<R> stderr()
Assertion
stderr
in class FluentComparableAssertion<R>
public FluentZonedDateTimeAssertion<R> stdout()
Assertion
stdout
in class FluentComparableAssertion<R>
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.