aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/apache/commons/lang3/builder
diff options
context:
space:
mode:
authorGary Gregory <garydgregory@gmail.com>2022-03-07 15:28:11 -0500
committerGary Gregory <garydgregory@gmail.com>2022-03-07 15:28:11 -0500
commit22cd660c33c8f98c2e634bcd2a8e2b89dda0f020 (patch)
tree23f08f0c8d58ec1729e073a4d331fa676ede7a79 /src/test/java/org/apache/commons/lang3/builder
parent9ebcddc0b15c39f18c26b330acd3bfd921ef9bff (diff)
downloadapache-commons-lang-22cd660c33c8f98c2e634bcd2a8e2b89dda0f020.tar.gz
Remove unused exceptions from test method signatures.
Diffstat (limited to 'src/test/java/org/apache/commons/lang3/builder')
-rw-r--r--src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderConcurrencyTest.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderConcurrencyTest.java b/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderConcurrencyTest.java
index 668102a9d..ba02486a0 100644
--- a/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderConcurrencyTest.java
+++ b/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderConcurrencyTest.java
@@ -26,7 +26,6 @@ import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.CopyOnWriteArrayList;
-import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
@@ -65,24 +64,23 @@ public class ReflectionToStringBuilderConcurrencyTest {
@Test
@Disabled
- public void testLinkedList() throws InterruptedException, ExecutionException {
+ public void testLinkedList() throws InterruptedException {
this.testConcurrency(new CollectionHolder<>(new LinkedList<>()));
}
@Test
@Disabled
- public void testArrayList() throws InterruptedException, ExecutionException {
+ public void testArrayList() throws InterruptedException {
this.testConcurrency(new CollectionHolder<>(new ArrayList<>()));
}
@Test
@Disabled
- public void testCopyOnWriteArrayList() throws InterruptedException, ExecutionException {
+ public void testCopyOnWriteArrayList() throws InterruptedException {
this.testConcurrency(new CollectionHolder<>(new CopyOnWriteArrayList<>()));
}
- private void testConcurrency(final CollectionHolder<List<Integer>> holder) throws InterruptedException,
- ExecutionException {
+ private void testConcurrency(final CollectionHolder<List<Integer>> holder) throws InterruptedException {
final List<Integer> list = holder.collection;
// make a big array that takes a long time to toString()
for (int i = 0; i < DATA_SIZE; i++) {