()
| 95 | } |
| 96 | |
| 97 | @Test |
| 98 | public void timeCanUnderflow() { |
| 99 | ticker.reset(Long.MIN_VALUE); |
| 100 | Deadline d = Deadline.after(-10, TimeUnit.DAYS, ticker); |
| 101 | assertEquals(-10, d.timeRemaining(TimeUnit.DAYS)); |
| 102 | assertTrue(d.isBefore(Deadline.after(0, TimeUnit.DAYS, ticker))); |
| 103 | assertTrue(d.isExpired()); |
| 104 | } |
| 105 | |
| 106 | @Test |
| 107 | public void deadlineClamps() { |
nothing calls this directly
no test coverage detected