511 |
|
"StampedLockTest", |
512 |
|
"SubmissionPublisherTest", |
513 |
|
"ThreadLocalRandom8Test", |
514 |
+ |
"TimeUnit8Test", |
515 |
|
}; |
516 |
|
addNamedTestClasses(suite, java8TestClassNames); |
517 |
|
} |
1833 |
|
} catch (NoSuchElementException success) {} |
1834 |
|
assertFalse(it.hasNext()); |
1835 |
|
} |
1836 |
+ |
|
1837 |
+ |
public <T> Callable<T> callableThrowing(final Exception ex) { |
1838 |
+ |
return new Callable<T>() { public T call() throws Exception { throw ex; }}; |
1839 |
+ |
} |
1840 |
+ |
|
1841 |
+ |
public Runnable runnableThrowing(final RuntimeException ex) { |
1842 |
+ |
return new Runnable() { public void run() { throw ex; }}; |
1843 |
+ |
} |
1844 |
|
} |