public class DateAssertion extends FluentDateAssertion<DateAssertion>
Date
objects.
Constructor and Description |
---|
DateAssertion(Date value)
Creator.
|
Modifier and Type | Method and Description |
---|---|
static DateAssertion |
create(Date value)
Creator.
|
DateAssertion |
msg(String msg,
Object... args)
Allows to to specify the assertion failure message.
|
protected DateAssertion |
returns()
Returns the object that the fluent methods on this class should return.
|
DateAssertion |
stderr()
If an error occurs, send the error message to STDERR.
|
DateAssertion |
stdout()
If an error occurs, send the error message to STDOUT.
|
isAfter, isAfterNow, isBefore, isBeforeNow, isBetween, isEqual
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
assertNotNull, assertNotNull, className, error
public DateAssertion(Date value)
value
- The date being wrapped.public static DateAssertion create(Date value)
value
- The date being wrapped.DateAssertion
object.protected DateAssertion returns()
FluentAssertion
returns
in class FluentAssertion<DateAssertion>
public DateAssertion msg(String msg, Object... args)
Assertion
String can contain
msg
in class FluentDateAssertion<DateAssertion>
msg
- The assertion failure message.args
- Optional message arguments.public DateAssertion stderr()
Assertion
stderr
in class FluentDateAssertion<DateAssertion>
public DateAssertion stdout()
Assertion
stdout
in class FluentDateAssertion<DateAssertion>
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.