|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use DateAssert | |
---|---|
org.fest.assertions.api |
Uses of DateAssert in org.fest.assertions.api |
---|
Methods in org.fest.assertions.api that return DateAssert | |
---|---|
static DateAssert |
Assertions.assertThat(Date actual)
Creates a new instance of . |
DateAssert |
DateAssert.isAfter(Date other)
Verifies that the actual Date is strictly after the given one. |
DateAssert |
DateAssert.isAfter(String dateAsString)
Same assertion as isAfter(Date) but given Date is represented as String either with ISO date format
(yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isAfterOrEqualsTo(Date other)
Verifies that the actual Date is after or equals to the given one. |
DateAssert |
DateAssert.isAfterOrEqualsTo(String dateAsString)
Same assertion as isAfterOrEqualsTo(Date) but given Date is represented as String either with ISO date
format (yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isAfterYear(int year)
Verifies that the actual Date is strictly after the given year. |
DateAssert |
DateAssert.isBefore(Date other)
Verifies that the actual Date is strictly before the given one. |
DateAssert |
DateAssert.isBefore(String dateAsString)
Same assertion as isBefore(Date) but given Date is represented as String either with ISO date format
(yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isBeforeOrEqualsTo(Date other)
Verifies that the actual Date is before or equals to the given one. |
DateAssert |
DateAssert.isBeforeOrEqualsTo(String dateAsString)
Same assertion as isBeforeOrEqualsTo(Date) but given Date is represented as String either with ISO date
format (yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isBeforeYear(int year)
Verifies that the actual Date is strictly before the given year. |
DateAssert |
DateAssert.isBetween(Date start,
Date end)
Verifies that the actual Date is in [start, end[ period (start included, end excluded). |
DateAssert |
DateAssert.isBetween(Date start,
Date end,
boolean inclusiveStart,
boolean inclusiveEnd)
Verifies that the actual Date is in the given period defined by start and end dates.To include start in the period set inclusiveStart parameter to true .To include end in the period set inclusiveEnd parameter to true . |
DateAssert |
DateAssert.isBetween(String start,
String end)
Same assertion as isBetween(Date, Date) but given Dates are represented as String either with ISO date
format (yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isBetween(String start,
String end,
boolean inclusiveStart,
boolean inclusiveEnd)
Same assertion as isBetween(Date, Date, boolean, boolean) but given Dates are represented as String either
with ISO date format (yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isCloseTo(Date other,
long deltaInMilliseconds)
Verifies that the actual Date is close to the other date by less than delta (expressed in milliseconds), if
difference is equals to delta it's ok. |
DateAssert |
DateAssert.isCloseTo(String dateAsString,
long deltaInMilliseconds)
Same assertion as isCloseTo(Date, long) but given Date is represented as String either with ISO date
format (yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isEqualTo(String dateAsString)
Same assertion as isEqualTo(Date date) but given Date is represented as String either with ISO date format
(yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isIn(String... datesAsString)
Same assertion as Assert.isIn(Object...) but given Dates are represented as String either with ISO date format
(yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isInSameDayAs(Date other)
Verifies that actual and given Date are chronologically in the same day of month (and thus in the same
month and year). |
DateAssert |
DateAssert.isInSameDayAs(String dateAsString)
Same assertion as isInSameDayAs(Date) but given Date is represented as String either with ISO date format
(yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isInSameHourAs(Date other)
Verifies that actual and given Date are chronologically in the same hour (and thus in the same day, month
and year). |
DateAssert |
DateAssert.isInSameHourAs(String dateAsString)
Same assertion as isInSameHourAs(Date) but given Date is represented as String either with ISO date format
(yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isInSameMinuteAs(Date other)
Verifies that actual and given Date are chronologically in the same minute (and thus in the same hour, day,
month and year). |
DateAssert |
DateAssert.isInSameMinuteAs(String dateAsString)
Same assertion as isInSameMinuteAs(Date) but given Date is represented as String either with ISO date
format (yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isInSameMonthAs(Date other)
Verifies that actual and given Date are chronologically in the same month (and thus in the same year). |
DateAssert |
DateAssert.isInSameMonthAs(String dateAsString)
Same assertion as isInSameMonthAs(Date) but given Date is represented as String either with ISO date
format (yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isInSameSecondAs(Date other)
Verifies that actual and given Date are chronologically in the same second (and thus in the same minute,
hour, day, month and year). |
DateAssert |
DateAssert.isInSameSecondAs(String dateAsString)
Same assertion as isInSameSecondAs(Date) but given Date is represented as String either with ISO date
format (yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isInSameYearAs(Date other)
Verifies that actual and given Date are in the same year. |
DateAssert |
DateAssert.isInSameYearAs(String dateAsString)
Same assertion as isInSameYearAs(Date) but given Date is represented as String either with ISO date format
(yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isInTheFuture()
Verifies that the actual Date is strictly in the future. |
DateAssert |
DateAssert.isInThePast()
Verifies that the actual Date is strictly in the past. |
DateAssert |
DateAssert.isInWithStringDateCollection(Collection<String> datesAsString)
Same assertion as Assert.isIn(Iterable) but given Dates are represented as String either with ISO date format
(yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ).Method signature could not be isIn(Collection<String>) because it would be same signature as
isIn(Collection<Date>) since java collection type are erased at runtime. |
DateAssert |
DateAssert.isNotBetween(Date start,
Date end)
Verifies that the actual Date is not in [start, end[ period |
DateAssert |
DateAssert.isNotBetween(Date start,
Date end,
boolean inclusiveStart,
boolean inclusiveEnd)
Verifies that the actual Date is not in the given period defined by start and end dates.To include start in the period set inclusiveStart parameter to true .To include end in the period set inclusiveEnd parameter to true . |
DateAssert |
DateAssert.isNotBetween(String start,
String end)
Same assertion as isNotBetween(Date, Date) but given Dates are represented as String either with ISO date
format (yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isNotBetween(String start,
String end,
boolean inclusiveStart,
boolean inclusiveEnd)
Same assertion as isNotBetween(Date, Date, boolean, boolean) but given Dates are represented as String
either with ISO date format (yyyy-MM-dd) or user custom date format (set with method
withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isNotEqualTo(String dateAsString)
Same assertion as isNotEqualTo(Date date) but given Date is represented as String either with ISO date format
(yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isNotIn(String... datesAsString)
Same assertion as Assert.isNotIn(Object...) but given Dates are represented as String either with ISO date
format (yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ). |
DateAssert |
DateAssert.isNotInWithStringDateCollection(Collection<String> datesAsString)
Same assertion as Assert.isNotIn(Iterable) but given Dates are represented as String either with ISO date
format (yyyy-MM-dd) or user custom date format (set with method withDateFormat(DateFormat) ).Method signature could not be isNotIn(Collection<String>) because it would be same signature as
isNotIn(Collection<Date>) since java collection type are erased at runtime. |
DateAssert |
DateAssert.isToday()
Verifies that the actual Date is today, that is matching current year, month and day (no check on hour,
minute, second, milliseconds). |
DateAssert |
DateAssert.isWithinDayOfMonth(int dayOfMonth)
Verifies that the actual Date day of month is equal to the given day of month. |
DateAssert |
DateAssert.isWithinDayOfWeek(int dayOfWeek)
Verifies that the actual Date day of week is equal to the given day of week (see
Calendar.DAY_OF_WEEK for valid values). |
DateAssert |
DateAssert.isWithinHourOfDay(int hourOfDay)
Verifies that the actual Date hour od day is equal to the given hour of day (24-hour clock). |
DateAssert |
DateAssert.isWithinMillisecond(int millisecond)
Verifies that the actual Date millisecond is equal to the given millisecond. |
DateAssert |
DateAssert.isWithinMinute(int minute)
Verifies that the actual Date minute is equal to the given minute. |
DateAssert |
DateAssert.isWithinMonth(int month)
Verifies that the actual Date month is equal to the given month, month value starting at 1
(January=1, February=2, ...). |
DateAssert |
DateAssert.isWithinSecond(int second)
Verifies that the actual Date second is equal to the given second. |
DateAssert |
DateAssert.isWithinYear(int year)
Verifies that the actual Date year is equal to the given year. |
DateAssert |
DateAssert.usingComparator(Comparator<? super Date> customComparator)
|
DateAssert |
DateAssert.usingDefaultComparator()
|
DateAssert |
DateAssert.withDateFormat(DateFormat userCustomDateFormat)
For String based Date assertions like isBefore(String) , given String is expected to follow the default
Date format, that is ISO 8601 format : "yyyy-MM-dd". |
DateAssert |
DateAssert.withIsoDateFormat()
Use ISO 8601 date format ("yyyy-MM-dd") for String based Date assertions. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |