Search in sources :

Example 1 with ImmutableByteCollection

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));
}
Also used : ImmutableByteCollection(org.eclipse.collections.api.collection.primitive.ImmutableByteCollection) Test(org.junit.Test)

Aggregations

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