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

Method forwardMoment

base/src/test/java/net/time4j/TimeLineTest.java:111–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109 }
110
111 @Test
112 public void forwardMoment() {
113 Moment time =
114 PlainTimestamp.of(2012, 6, 30, 23, 59, 59)
115 .with(PlainTime.NANO_OF_SECOND, 999999999)
116 .atUTC();
117 assertThat(
118 Moment.axis().stepForward(time),
119 is(
120 PlainTimestamp.of(2012, 6, 30, 23, 59, 59)
121 .atUTC()
122 .plus(1, SI.SECONDS)));
123 }
124
125 @Test
126 public void backwardsMoment() {

Callers

nothing calls this directly

Calls 6

ofMethod · 0.95
axisMethod · 0.95
atUTCMethod · 0.65
withMethod · 0.65
stepForwardMethod · 0.65
plusMethod · 0.45

Tested by

no test coverage detected