Ticker epochs to vary testing.
()
| 47 | public class DeadlineTest { |
| 48 | /** Ticker epochs to vary testing. */ |
| 49 | @Parameters |
| 50 | public static Iterable<Object[]> data() { |
| 51 | return Arrays.asList(new Object[][] { |
| 52 | // MAX_VALUE / 2 is important because the signs are generally the same for past and future |
| 53 | // deadlines. |
| 54 | {Long.MAX_VALUE / 2}, {0}, {Long.MAX_VALUE}, {Long.MIN_VALUE} |
| 55 | }); |
| 56 | } |
| 57 | |
| 58 | private FakeTicker ticker = new FakeTicker(); |
| 59 |