()
| 261 | } |
| 262 | |
| 263 | @Test |
| 264 | public void compareTo_less() { |
| 265 | Deadline d1 = Deadline.after(10, TimeUnit.SECONDS, ticker); |
| 266 | ticker.increment(1, TimeUnit.NANOSECONDS); |
| 267 | Deadline d2 = Deadline.after(10, TimeUnit.SECONDS, ticker); |
| 268 | Truth.assertThat(d1).isLessThan(d2); |
| 269 | } |
| 270 | |
| 271 | @Test |
| 272 | public void compareTo_same() { |