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 cc94a9d43 [COLLECTIONS-864] Add
CollectionUtilsTest.testSelect_Iterable_Predicate_Collection_JiraCollections864
cc94a9d43 is described below
commit cc94a9d4338fbb0677150d762762deb18792d981
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Oct 18 11:04:20 2024 -0400
[COLLECTIONS-864] Add
CollectionUtilsTest.testSelect_Iterable_Predicate_Collection_JiraCollections864
---
.../org/apache/commons/collections4/CollectionUtilsTest.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git
a/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java
b/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java
index e1c2f206a..a8c578697 100644
--- a/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java
+++ b/src/test/java/org/apache/commons/collections4/CollectionUtilsTest.java
@@ -54,6 +54,8 @@ import
org.apache.commons.collections4.collection.SynchronizedCollection;
import org.apache.commons.collections4.collection.TransformedCollection;
import org.apache.commons.collections4.collection.UnmodifiableCollection;
import org.apache.commons.collections4.functors.DefaultEquator;
+import org.apache.commons.collections4.functors.InstanceofPredicate;
+import org.apache.commons.collections4.functors.UniquePredicate;
import org.apache.commons.collections4.queue.CircularFifoQueue;
import org.apache.commons.lang3.ArrayUtils;
import org.junit.jupiter.api.BeforeEach;
@@ -1942,6 +1944,15 @@ public class CollectionUtilsTest extends MockTestCase {
assertEquals(2, output2.iterator().next());
}
+ @Test
+ public void testSelect_Iterable_Predicate_Collection_JiraCollections864() {
+ final UniquePredicate<Object> uniquePredicate0 = new
UniquePredicate<>();
+ final LinkedList<InstanceofPredicate> linkedList0 = new LinkedList<>();
+ final Class<InstanceofPredicate> class0 = InstanceofPredicate.class;
+ final InstanceofPredicate instanceofPredicate0 = new
InstanceofPredicate(class0);
+ CollectionUtils.select((Iterable<? extends InstanceofPredicate>)
linkedList0, (Predicate<? super InstanceofPredicate>) uniquePredicate0,
linkedList0);
+ }
+
@Test
public void testSelectRejected() {
final List<Long> list = new ArrayList<>();