MCPcopy Create free account
hub / github.com/MenoData/Time4J / offsetOneDay

Method offsetOneDay

base/src/test/java/net/time4j/clock/ClockTest.java:45–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 }
44
45 @Test
46 public void offsetOneDay() {
47 AdjustableClock clock =
48 AdjustableClock.of(SystemClock.INSTANCE).withOffset(1, DAYS);
49 PlainDate tomorrow =
50 SystemClock.inLocalView().today().plus(1, CalendarUnit.DAYS);
51 assertThat(clock.inLocalView().today(), is(tomorrow));
52 }
53
54 @Test
55 public void pulsedMicros() {

Callers

nothing calls this directly

Calls 6

ofMethod · 0.95
inLocalViewMethod · 0.95
withOffsetMethod · 0.80
plusMethod · 0.45
todayMethod · 0.45
inLocalViewMethod · 0.45

Tested by

no test coverage detected