Skip to content

Commit

Permalink
[COLLECTIONS-864] Add
Browse files Browse the repository at this point in the history
CollectionUtilsTest.testSelect_Iterable_Predicate_Collection_JiraCollections864
  • Loading branch information
garydgregory committed Oct 18, 2024
1 parent 45603c0 commit cc94a9d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
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;
Expand Down Expand Up @@ -1942,6 +1944,15 @@ public void testSelect() {
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<>();
Expand Down

0 comments on commit cc94a9d

Please sign in to comment.