Package | Description |
---|---|
org.assertj.jodatime.api |
Modifier and Type | Method and Description |
---|---|
static DateTimeAssert |
Assertions.assertThat(org.joda.time.DateTime date) |
DateTimeAssert |
DateTimeAssert.hasDayOfMonth(int expectedDayOfMonth)
Verifies that the day of month of the actual
DateTime is equal to the given day of month |
DateTimeAssert |
DateTimeAssert.hasHourOfDay(int expectedHourOfDay)
Verifies that the hour of the actual
DateTime is equal to the given hour |
DateTimeAssert |
DateTimeAssert.hasMillisOfSecond(int expectedMillisOfSecond)
Verifies that the milliseconds of the actual
DateTime is equal to the given milliseconds |
DateTimeAssert |
DateTimeAssert.hasMinuteOfHour(int expectedMinuteOfHour)
Verifies that the minute of the actual
DateTime is equal to the given minute |
DateTimeAssert |
DateTimeAssert.hasMonthOfYear(int expectedMonthOfYear)
Verifies that the month of the actual
DateTime is equal to the given month |
DateTimeAssert |
DateTimeAssert.hasSecondOfMinute(int expectedSecondOfMinute)
Verifies that the seconds of the actual
DateTime is equal to the given seconds |
DateTimeAssert |
DateTimeAssert.hasYear(int expectedYear)
Verifies that the year of the actual
DateTime is equal to the given year |
DateTimeAssert |
DateTimeAssert.isAfter(org.joda.time.DateTime other)
Verifies that the actual
DateTime is strictly after the given one. |
DateTimeAssert |
DateTimeAssert.isAfter(String dateTimeAsString)
Same assertion as
isAfter(DateTime) but the DateTime is built from given String, which must follow
ISO DateTime format to allow calling DateTime(Object) constructor. |
DateTimeAssert |
DateTimeAssert.isAfterOrEqualTo(org.joda.time.DateTime other)
Verifies that the actual
DateTime is after or equals to the given one. |
DateTimeAssert |
DateTimeAssert.isAfterOrEqualTo(String dateTimeAsString)
Same assertion as
isAfterOrEqualTo(DateTime) but the DateTime is built from given String, which
must follow ISO DateTime format to allow calling DateTime(Object) constructor. |
DateTimeAssert |
DateTimeAssert.isBefore(org.joda.time.DateTime other)
Verifies that the actual
DateTime is strictly before the given one. |
DateTimeAssert |
DateTimeAssert.isBefore(String dateTimeAsString)
Same assertion as
isBefore(DateTime) but the DateTime is built from given String, which must
follow ISO DateTime format to allow calling DateTime(Object) constructor. |
DateTimeAssert |
DateTimeAssert.isBeforeOrEqualTo(org.joda.time.DateTime other)
Verifies that the actual
DateTime is before or equals to the given one. |
DateTimeAssert |
DateTimeAssert.isBeforeOrEqualTo(String dateTimeAsString)
Same assertion as
isBeforeOrEqualTo(DateTime) but the DateTime is built from given String, which
must follow ISO DateTime format to allow calling DateTime(Object) constructor. |
DateTimeAssert |
DateTimeAssert.isEqualTo(org.joda.time.DateTime expected)
Verifies that the actual
DateTime is equal to the given one in actual's DateTimeZone . |
DateTimeAssert |
DateTimeAssert.isEqualTo(String dateTimeAsString)
Same assertion as
isEqualTo(DateTime) but the DateTime is built from given String, which must
follow ISO DateTime format to allow calling DateTime(Object) constructor. |
DateTimeAssert |
DateTimeAssert.isEqualToIgnoringHours(org.joda.time.DateTime other)
Verifies that actual and given
DateTime have same year, month and day fields (hour, minute, second and
millisecond fields are ignored in comparison). |
DateTimeAssert |
DateTimeAssert.isEqualToIgnoringMillis(org.joda.time.DateTime other)
Verifies that actual and given
DateTime have same year, month, day, hour, minute and second fields,
(millisecond fields are ignored in comparison). |
DateTimeAssert |
DateTimeAssert.isEqualToIgnoringMinutes(org.joda.time.DateTime other)
Verifies that actual and given
DateTime have same year, month, day and hour fields (minute, second and
millisecond fields are ignored in comparison). |
DateTimeAssert |
DateTimeAssert.isEqualToIgnoringSeconds(org.joda.time.DateTime other)
Verifies that actual and given
DateTime have same year, month, day, hour and minute fields (second and
millisecond fields are ignored in comparison). |
DateTimeAssert |
DateTimeAssert.isIn(org.joda.time.DateTime... expected)
Verifies that the actual
DateTime is equal to one of the given DateTime in the actual DateTime's
DateTimeZone . |
DateTimeAssert |
DateTimeAssert.isIn(String... dateTimesAsString)
Same assertion as
isIn(DateTime...) but the DateTime are built from given String, which must
follow ISO DateTime format to allow calling DateTime(Object) constructor. |
DateTimeAssert |
DateTimeAssert.isNotEqualTo(org.joda.time.DateTime expected)
Verifies that the actual value is not equal to the given one in actual's
DateTimeZone . |
DateTimeAssert |
DateTimeAssert.isNotEqualTo(String dateTimeAsString)
Same assertion as
isNotEqualTo(DateTime) but the DateTime is built from given String, which must
follow ISO DateTime format to allow calling DateTime(Object) constructor. |
DateTimeAssert |
DateTimeAssert.isNotIn(org.joda.time.DateTime... expected)
Verifies that the actual
DateTime is equal to one of the given DateTime in the actual DateTime's
DateTimeZone . |
DateTimeAssert |
DateTimeAssert.isNotIn(String... dateTimesAsString)
Same assertion as
isNotIn(org.joda.time.DateTime...) but the DateTime is built from given String,
which must follow ISO DateTime format to allow calling DateTime(Object) constructor. |
Constructor and Description |
---|
DateTimeAssert(Class<DateTimeAssert> selfType,
org.joda.time.DateTime actual)
Creates a new
. |
Copyright © 2018 AssertJ. All rights reserved.