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));
}
Aggregations