()
| 253 | } |
| 254 | |
| 255 | @Test |
| 256 | public void compareTo_greater() { |
| 257 | Deadline d1 = Deadline.after(10, TimeUnit.SECONDS, ticker); |
| 258 | ticker.increment(1, TimeUnit.NANOSECONDS); |
| 259 | Deadline d2 = Deadline.after(10, TimeUnit.SECONDS, ticker); |
| 260 | Truth.assertThat(d2).isGreaterThan(d1); |
| 261 | } |
| 262 | |
| 263 | @Test |
| 264 | public void compareTo_less() { |