()
| 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() { |