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