use of org.eclipse.collections.api.collection.primitive.ImmutableByteCollection in project eclipse-collections by eclipse.
the class AbstractImmutableCollectionTestCase method collectByte.
@Test
public void collectByte() {
ImmutableCollection<Integer> integers = this.classUnderTest();
ImmutableByteCollection immutableCollection = integers.collectByte(PrimitiveFunctions.unboxIntegerToByte());
Verify.assertSize(integers.size(), immutableCollection);
Assert.assertEquals(integers, immutableCollection.collect(Integer::valueOf));
}
Aggregations