# | Line 1833 | Line 1833 | public class JSR166TestCase extends Test | |
---|---|---|
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 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |