public class OffsetdatetimeKt
| Modifier and Type | Method and Description |
|---|---|
static Matcher<java.time.OffsetDateTime> |
beInTodayODT() |
static void |
shouldBeToday(java.time.OffsetDateTime $receiver)
Asserts that the OffsetDateTime has a date component of today
|
static void |
shouldNotBeToday(java.time.OffsetDateTime $receiver)
Asserts that the OffsetDateTime does not have a date component of today
|
public static Matcher<java.time.OffsetDateTime> beInTodayODT()
public static void shouldBeToday(java.time.OffsetDateTime $receiver)
Asserts that the OffsetDateTime has a date component of today
OffsetDateTime.now().shouldBeToday() // Assertion passes
public static void shouldNotBeToday(java.time.OffsetDateTime $receiver)
Asserts that the OffsetDateTime does not have a date component of today
OffsetDateTime.of(2009, Month.APRIL, 2,2,2).shouldNotBeToday() // Assertion passes