@Test public void should_fail_if_actual_is_null() { expectException(AssertionError.class, actualIsNull()); OffsetTime actual = null; assertThat(actual).isEqualToIgnoringNanos(OffsetTime.now()); }
@Test public void should_fail_if_actual_is_null() { expectException(AssertionError.class, actualIsNull()); OffsetTime actual = null; assertThat(actual).hasSameHourAs(OffsetTime.now()); }