void function ( Throwable arg0 ) { Assert . assertTrue ( countDownLatch . await ( 1L , TimeUnit . SECONDS ) ) ; try { future . get ( ) ; Assert . fail ( "srini_string" ) ; } catch ( ExecutionException loc0 ) { Assert . assertSame ( arg0 , loc0 . getCause ( ) ) ; } }
verify that the listener completes in a reasonable amount of time , and asserts that the future throws an executableexception and that thecause of the executableexception is expectedcause . concode_field_sep ListenableFuture<?> future concode_elem_sep CountDownLatch countDownLatch concode_field_sep void assertSuccess concode_elem_sep void assertTimeout concode_elem_sep void run