import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.fail;
+
import com.google.common.util.concurrent.CheckedFuture;
import com.google.common.util.concurrent.SettableFuture;
import java.util.concurrent.CancellationException;
@Override
public Throwable extractWrappedTestEx( final Exception from ) {
if (from instanceof ExecutionException ) {
- return ((ExecutionException)from).getCause();
+ return from.getCause();
}
return from;
@Override
public Throwable extractWrappedTestEx( final Exception from ) {
if (from instanceof ExecutionException ) {
- return ((ExecutionException)from).getCause();
+ return from.getCause();
}
return from;