Remove unused exceptions from test method signatures.
This commit is contained in:
parent
9ebcddc0b1
commit
22cd660c33
|
@ -26,7 +26,6 @@ import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.Callable;
|
import java.util.concurrent.Callable;
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
import java.util.concurrent.ExecutionException;
|
|
||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.Future;
|
import java.util.concurrent.Future;
|
||||||
|
@ -65,24 +64,23 @@ public class ReflectionToStringBuilderConcurrencyTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Disabled
|
@Disabled
|
||||||
public void testLinkedList() throws InterruptedException, ExecutionException {
|
public void testLinkedList() throws InterruptedException {
|
||||||
this.testConcurrency(new CollectionHolder<>(new LinkedList<>()));
|
this.testConcurrency(new CollectionHolder<>(new LinkedList<>()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Disabled
|
@Disabled
|
||||||
public void testArrayList() throws InterruptedException, ExecutionException {
|
public void testArrayList() throws InterruptedException {
|
||||||
this.testConcurrency(new CollectionHolder<>(new ArrayList<>()));
|
this.testConcurrency(new CollectionHolder<>(new ArrayList<>()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Disabled
|
@Disabled
|
||||||
public void testCopyOnWriteArrayList() throws InterruptedException, ExecutionException {
|
public void testCopyOnWriteArrayList() throws InterruptedException {
|
||||||
this.testConcurrency(new CollectionHolder<>(new CopyOnWriteArrayList<>()));
|
this.testConcurrency(new CollectionHolder<>(new CopyOnWriteArrayList<>()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void testConcurrency(final CollectionHolder<List<Integer>> holder) throws InterruptedException,
|
private void testConcurrency(final CollectionHolder<List<Integer>> holder) throws InterruptedException {
|
||||||
ExecutionException {
|
|
||||||
final List<Integer> list = holder.collection;
|
final List<Integer> list = holder.collection;
|
||||||
// make a big array that takes a long time to toString()
|
// make a big array that takes a long time to toString()
|
||||||
for (int i = 0; i < DATA_SIZE; i++) {
|
for (int i = 0; i < DATA_SIZE; i++) {
|
||||||
|
|
Loading…
Reference in New Issue