()
| 33 | } |
| 34 | |
| 35 | @Test |
| 36 | public void oneLevel() throws Exception { |
| 37 | final RuntimeException ex = new RuntimeException("Boo!"); |
| 38 | deferreds.add(Deferred.fromError(ex)); |
| 39 | try { |
| 40 | Deferred.group(deferreds).join(); |
| 41 | fail("Expected a DeferredGroupException"); |
| 42 | } catch (DeferredGroupException dge) { |
| 43 | assertSame(ex, Exceptions.getCause(dge)); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | @Test |
| 48 | public void nested() throws Exception { |