Dates.
| Modifier and Type | Field and Description |
|---|---|
| private final ComparisonStrategy | |
| pack-priv Failures | |
| private static final Dates |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | actualIsBetweenGivenPeriod(AssertionInfo info, Date actual, Date start, Date end, boolean inclusiveStart, boolean inclusiveEnd)
|
| private boolean | Returns: true if the actual Date is equal to the given one according to underlying
comparisonStrategy, false otherwise.the actual date - must not be null. actual, Date the given Date. other)Returns true if the actual |
| private static boolean | Returns: true if both date are in the same year, month and day of month, false otherwisethe actual date. expected not be null actual, Date the other date. expected not be null other)Returns true if both date are in the same year, month and day of month, false otherwise. |
| private static boolean | Returns: true if both date are in the same year, month, day of month and hour, false otherwise.the actual date. expected not be null actual, Date the other date. expected not be null other)Returns true if both date are in the same year, month, day of month and hour, false otherwise. |
| private static boolean | Returns: true if both date are in the same year, month and day of month, hour, minute and second, false otherwise.the actual date. expected not be null actual, Date the other date. expected not be null other)Returns true if both date are in the same year, month and day of month, hour, minute and second, false otherwise. |
| private static boolean | Returns: true if both date are in the same year, month, day of month, hour and minute, false otherwise.the actual date. expected not be null actual, Date the other date. expected not be null other)Returns true if both date are in the same year, month, day of month, hour and minute, false otherwise. |
| private static boolean | |
| private static boolean | Returns: true if both date are in the same year and month, false otherwisethe actual date. expected not be null actual, Date the other date. expected not be null other)Returns true if both date are in the same year and month, false otherwise. |
| private static boolean | Returns: true if both date are in the same year, month and day of month, hour, minute and second, false otherwise.the actual date. expected not be null actual, Date the other date. expected not be null other)Returns true if both date are in the same year, month and day of month, hour, minute and second, false otherwise. |
| private static boolean | Returns: true if both date are in the same year, month and day of month, hour, minute and second, false otherwise.the actual date. expected not be null actual, Date the other date. expected not be null other)Returns true if both date are in the same year, month and day of month, hour, minute and second, false otherwise. |
| private static boolean | Returns: true if both date are in the same year, false otherwisethe actual date. expected not be null actual, Date the other date. expected not be null other)Returns true if both date are in the same year, false otherwise. |
| public void | assertHasDayOfMonth(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, int Date.the day of month to compare actual day of month to dayOfMonth)Verifies that the actual |
| public void | assertHasDayOfWeek(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, int Date.the day of week to compare actual day of week to, see dayOfWeek)Calendar#DAY_OF_WEEK for valid valuesVerifies that the actual |
| public void | assertHasHourOfDay(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, int Date.the hour of day to compare actual hour of day to (24-hour clock) hourOfDay)Verifies that the actual |
| public void | assertHasMillisecond(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, int Date.the millisecond to compare actual millisecond to millisecond)Verifies that the actual |
| public void | assertHasMinute(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, int Date.the minute to compare actual minute to minute)Verifies that the actual |
| public void | assertHasMonth(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, int Date.the month to compare actual month to, see month)Calendar#MONTH for valid valuesVerifies that the actual |
| public void | assertHasSameTime(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the "expected" expected)Date to compare actual time toVerifies that the actual |
| public void | assertHasSecond(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, int Date.the second to compare actual second to second)Verifies that the actual |
| public void | assertHasTime(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, long Date.the timestamp to compare actual time to timestamp)Verifies that the actual |
| public void | assertHasYear(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, int Date.the year to compare actual year to year)Verifies that the actual |
| public void | assertIsAfter(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the given Date. other)Verifies that the actual |
| public void | assertIsAfterOrEqualTo(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the given Date. other)Verifies that the actual |
| public void | assertIsAfterYear(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, int Date.the year to compare actual year to year)Verifies that the actual |
| public void | assertIsBefore(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the other date to compare actual with. other)Verifies that the actual |
| public void | assertIsBeforeOrEqualTo(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the other date to compare actual with. other)Verifies that the actual |
| public void | assertIsBeforeYear(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, int Date.the year to compare actual year to year)Verifies that the actual |
| public void | assertIsBetween(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the period start, expected not to be null. start, Date the period end, expected not to be null. end, boolean whether to include start date in period. inclusiveStart, boolean whether to include end date in period. inclusiveEnd)Verifies that the actual |
| public void | assertIsCloseTo(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the given other, long Date to compare actual Date to.the delta used for date comparison, expressed in milliseconds deltaInMilliseconds)Verifies that the actual |
| public void | assertIsEqualWithPrecision(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the given Date. other, TimeUnit maximum precision for the comparison. precision)Verifies that the actual |
| public void | assertIsInSameDayAs(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the given other)Date to compare actual Date to.Verifies that actual and given |
| public void | assertIsInSameHourAs(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the given other)Date to compare actual Date to.Verifies that actual and given |
| public void | assertIsInSameHourWindowAs(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the given other)Date to compare actual Date to.Verifies that actual and given |
| public void | assertIsInSameMinuteAs(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the given other)Date to compare actual Date to.Verifies that actual and given |
| public void | assertIsInSameMinuteWindowAs(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the given other)Date to compare actual Date to.Verifies that actual and given |
| public void | assertIsInSameMonthAs(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the given other)Date to compare actual Date to.Verifies that actual and given |
| public void | assertIsInSameSecondAs(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the given other)Date to compare actual Date to.Verifies that actual and given |
| public void | assertIsInSameSecondWindowAs(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the given other)Date to compare actual Date to.Verifies that actual and given |
| public void | assertIsInSameYearAs(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the given other)Date to compare actual Date to.Verifies that actual and given |
| public void | assertIsInTheFuture(AssertionInfo
contains information about the assertion. info, Date the "actual" actual)Date.Verifies that the actual |
| public void | assertIsInThePast(AssertionInfo
contains information about the assertion. info, Date the "actual" actual)Date.Verifies that the actual |
| public void | assertIsNotBetween(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the period start, expected not to be null. start, Date the period end, expected not to be null. end, boolean whether to include start date in period. inclusiveStart, boolean whether to include end date in period. inclusiveEnd)Verifies that the actual |
| public void | assertIsToday(AssertionInfo
contains information about the assertion. info, Date the "actual" actual)Date.Verifies that the actual |
| private void | |
| private static void | dateParameterIsNotNull(Date
the date to check date)used to check that the date to compare actual date to is not null, in that case throws a |
| private static void | endDateParameterIsNotNull(Date
the end date to check end)used to check that the end of period date to compare actual date to is not null, in that case throws a
|
| public Comparator | |
| public void | hasSameTimeAs(AssertionInfo
contains information about the assertion. info, Date the "actual" actual, Date Date.the date to compare actual time to date)Verifies that the actual |
| public static Dates | Returns: the singleton instance of this class.Returns the singleton instance of this class. |
| private boolean | Returns: true if actual is after other according to underlyingcomparisonStrategy, false otherwise.the actual, Date Date to compare to otherthe other)Date to compare to actualReturns true if actual is after other according to underlying |
| private boolean | Returns: true if the actual Date is after or equal to the given one according to underlying
comparisonStrategy, false otherwise.the actual date - must not be null. actual, Date the given Date. other)Returns |
| private boolean | Returns: true if actual is before other according to underlyingcomparisonStrategy, false otherwise.the actual, Date Date to compare to otherthe other)Date to compare to actualReturns true if actual is before other according to underlying |
| private boolean | Returns: true if the actual Date is before or equal to the given one according to underlying
comparisonStrategy, false otherwise.the actual date - must not be null. actual, Date the given Date. other)Returns |
| private static void | startDateParameterIsNotNull(Date
the start date to check start)used to check that the start of period date to compare actual date to is not null, in that case throws a
|