Polishing

This commit is contained in:
Juergen Hoeller
2014-09-04 03:06:37 +02:00
parent d081a4530c
commit d765698ac3
3 changed files with 17 additions and 30 deletions

View File

@@ -18,7 +18,6 @@ package org.springframework.util.concurrent;
import java.io.IOException;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import org.junit.Test;
@@ -30,7 +29,7 @@ import static org.junit.Assert.*;
public class ListenableFutureTaskTests {
@Test
public void success() throws ExecutionException, InterruptedException {
public void success() throws Exception {
final String s = "Hello World";
Callable<String> callable = new Callable<String>() {
@Override
@@ -53,7 +52,7 @@ public class ListenableFutureTaskTests {
}
@Test
public void failure() throws ExecutionException, InterruptedException {
public void failure() throws Exception {
final String s = "Hello World";
Callable<String> callable = new Callable<String>() {
@Override