You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/03/06 22:17:41 UTC
[commons-collections] branch master updated: Remove extra whitespace.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push:
new 99bb546 Remove extra whitespace.
99bb546 is described below
commit 99bb546524e7db07e006f5358074de10724d61f1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Mar 6 17:17:39 2022 -0500
Remove extra whitespace.
---
.../apache/commons/collections4/bloomfilter/hasher/ShapeTest.java | 4 ----
.../commons/collections4/functors/CatchAndRethrowClosureTest.java | 2 --
.../commons/collections4/iterators/ReverseListIteratorTest.java | 1 -
.../java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java | 5 -----
4 files changed, 12 deletions(-)
diff --git a/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/ShapeTest.java b/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/ShapeTest.java
index dd8839c..a393451 100644
--- a/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/ShapeTest.java
+++ b/src/test/java/org/apache/commons/collections4/bloomfilter/hasher/ShapeTest.java
@@ -280,19 +280,15 @@ public class ShapeTest {
// probability should not be 0
() -> assertThrows(IllegalArgumentException.class, () -> new Shape(testFunction, 0.0, 24, 1),
"Should have thrown IllegalArgumentException"),
-
// probability should not be = -1
() -> assertThrows(IllegalArgumentException.class, () -> new Shape(testFunction, -1.0, 24, 1),
"Should have thrown IllegalArgumentException"),
-
// probability should not be < -1
() -> assertThrows(IllegalArgumentException.class, () -> new Shape(testFunction, -1.5, 24, 1),
"Should have thrown IllegalArgumentException"),
-
// probability should not be = 1
() -> assertThrows(IllegalArgumentException.class, () -> new Shape(testFunction, 1.0, 24, 1),
"Should have thrown IllegalArgumentException"),
-
// probability should not be > 1
() -> assertThrows(IllegalArgumentException.class, () -> new Shape(testFunction, 2.0, 24, 1),
"Should have thrown IllegalArgumentException")
diff --git a/src/test/java/org/apache/commons/collections4/functors/CatchAndRethrowClosureTest.java b/src/test/java/org/apache/commons/collections4/functors/CatchAndRethrowClosureTest.java
index 96381ae..11a771b 100644
--- a/src/test/java/org/apache/commons/collections4/functors/CatchAndRethrowClosureTest.java
+++ b/src/test/java/org/apache/commons/collections4/functors/CatchAndRethrowClosureTest.java
@@ -74,13 +74,11 @@ public class CatchAndRethrowClosureTest extends AbstractClosureTest {
final Closure<Integer> closure = generateNoExceptionClosure();
closure.execute(Integer.valueOf(0));
}),
-
dynamicTest("Closure IOException", () -> {
final Closure<Integer> closure = generateIOExceptionClosure();
final FunctorException thrown = assertThrows(FunctorException.class, () -> closure.execute(Integer.valueOf(0)));
assertTrue(thrown.getCause() instanceof IOException);
}),
-
dynamicTest("Closure NullPointerException", () -> {
final Closure<Integer> closure = generateNullPointerExceptionClosure();
assertThrows(NullPointerException.class, () -> closure.execute(Integer.valueOf(0)));
diff --git a/src/test/java/org/apache/commons/collections4/iterators/ReverseListIteratorTest.java b/src/test/java/org/apache/commons/collections4/iterators/ReverseListIteratorTest.java
index 42d5416..7890e6c 100644
--- a/src/test/java/org/apache/commons/collections4/iterators/ReverseListIteratorTest.java
+++ b/src/test/java/org/apache/commons/collections4/iterators/ReverseListIteratorTest.java
@@ -64,7 +64,6 @@ public class ReverseListIteratorTest<E> extends AbstractListIteratorTest<E> {
// next() should throw a NoSuchElementException
() -> assertThrows(NoSuchElementException.class, () -> it.next(),
"NoSuchElementException must be thrown from empty ListIterator"),
-
// previous() should throw a NoSuchElementException
() -> assertThrows(NoSuchElementException.class, () -> it.previous(),
"NoSuchElementException must be thrown from empty ListIterator")
diff --git a/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java b/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java
index 83b07b2..727751b 100644
--- a/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java
+++ b/src/test/java/org/apache/commons/collections4/keyvalue/MultiKeyTest.java
@@ -152,11 +152,9 @@ public class MultiKeyTest {
dynamicTest("Integer[] null", () -> {
assertThrows(NullPointerException.class, () -> new MultiKey<>(keys));
}),
-
dynamicTest("Integer[] null + makeClone true", () -> {
assertThrows(NullPointerException.class, () -> new MultiKey<>(keys, true));
}),
-
dynamicTest("Integer[] null + makeClone false", () -> {
assertThrows(NullPointerException.class, () -> new MultiKey<>(keys, false));
})
@@ -229,15 +227,12 @@ public class MultiKeyTest {
dynamicTest("0", () -> {
assertSame(ONE, mk.getKey(0));
}),
-
dynamicTest("1", () -> {
assertSame(TWO, mk.getKey(1));
}),
-
dynamicTest("-1", () -> {
assertThrows(IndexOutOfBoundsException.class, () -> mk.getKey(-1));
}),
-
dynamicTest("2", () -> {
assertThrows(IndexOutOfBoundsException.class, () -> mk.getKey(2));
})