[COLLECTIONS-864] Add

CollectionUtilsTest.testSelect_Iterable_Predicate_Collection_JiraCollections864
This commit is contained in:
Gary Gregory 2024-10-18 11:04:20 -04:00
parent 45603c08d9
commit cc94a9d433
1 changed files with 11 additions and 0 deletions

View File

@ -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<>();