Search in sources :

Example 1 with ImmutableShortCollection

use of org.eclipse.collections.api.collection.primitive.ImmutableShortCollection in project eclipse-collections by eclipse.

the class AbstractImmutableCollectionTestCase method collectShort.

@Test
public void collectShort() {
    ImmutableCollection<Integer> integers = this.classUnderTest();
    ImmutableShortCollection immutableCollection = integers.collectShort(PrimitiveFunctions.unboxIntegerToShort());
    Verify.assertSize(integers.size(), immutableCollection);
    Assert.assertEquals(integers, immutableCollection.collect(Integer::valueOf));
}
Also used : ImmutableShortCollection(org.eclipse.collections.api.collection.primitive.ImmutableShortCollection) Test(org.junit.Test)

Aggregations

ImmutableShortCollection (org.eclipse.collections.api.collection.primitive.ImmutableShortCollection)1 Test (org.junit.Test)1