public class DateAssert extends AbstractDateAssert<DateAssert>
Date
s.
To create a new instance of this class invoke
.
Assertions.assertThat(Date)
Date
and the other is a String
representing a Date.AbstractDateAssert.withDateFormat(DateFormat)
.AbstractDateAssert.withDefaultDateFormatsOnly()
.actual, info, myself, throwUnsupportedExceptionOnEquals
Constructor and Description |
---|
DateAssert(Date actual)
Creates a new
DateAssert . |
hasDayOfMonth, hasDayOfWeek, hasHourOfDay, hasMillisecond, hasMinute, hasMonth, hasSameTimeAs, hasSameTimeAs, hasSecond, hasTime, hasYear, isAfter, isAfter, isAfterOrEqualsTo, isAfterOrEqualsTo, isAfterYear, isBefore, isBefore, isBeforeOrEqualsTo, isBeforeOrEqualsTo, isBeforeYear, isBetween, isBetween, isBetween, isBetween, isCloseTo, isCloseTo, isEqualTo, isEqualToIgnoringHours, isEqualToIgnoringHours, isEqualToIgnoringMillis, isEqualToIgnoringMillis, isEqualToIgnoringMinutes, isEqualToIgnoringMinutes, isEqualToIgnoringSeconds, isEqualToIgnoringSeconds, isIn, isInSameDayAs, isInSameDayAs, isInSameHourAs, isInSameHourAs, isInSameHourWindowAs, isInSameHourWindowAs, isInSameMinuteAs, isInSameMinuteAs, isInSameMinuteWindowAs, isInSameMinuteWindowAs, isInSameMonthAs, isInSameMonthAs, isInSameSecondAs, isInSameSecondAs, isInSameSecondWindowAs, isInSameSecondWindowAs, isInSameYearAs, isInSameYearAs, isInTheFuture, isInThePast, isInWithStringDateCollection, isNotBetween, isNotBetween, isNotBetween, isNotBetween, isNotEqualTo, isNotIn, isNotInWithStringDateCollection, isToday, isWithinDayOfMonth, isWithinDayOfWeek, isWithinHourOfDay, isWithinMillisecond, isWithinMinute, isWithinMonth, isWithinSecond, isWithinYear, registerCustomDateFormat, registerCustomDateFormat, setLenientDateParsing, useDefaultDateFormatsOnly, usingComparator, usingComparator, usingDefaultComparator, withDateFormat, withDateFormat, withDefaultDateFormatsOnly
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, throwAssertionError, withFailMessage, withRepresentation, withThreadDumpOnError
public DateAssert(Date actual)
DateAssert
.actual
- the target to verify.Copyright © 2014–2019 AssertJ. All rights reserved.