- invoker.invokeGet( mappingFuture );
- fail( "Expected exception thrown" );
- } catch( Exception e ) {
- Throwable expectedTestEx = invoker.extractWrappedTestEx( e );
- assertNotNull( "Expected returned exception is null", expectedTestEx );
- assertEquals( "Exception type", TestException.class, expectedTestEx.getClass() );
- assertEquals( "TestException cause type", CancellationException.class,
- expectedTestEx.getCause().getClass() );
+ invoker.invokeGet(mappingFuture);
+ fail("Expected exception thrown");
+ } catch (Exception e) {
+ Throwable expectedTestEx = invoker.extractWrappedTestEx(e);
+ assertNotNull("Expected returned exception is null", expectedTestEx);
+ assertEquals("Exception type", TestException.class, expectedTestEx.getClass());
+ assertEquals("TestException cause type", CancellationException.class, expectedTestEx.getCause().getClass());