Search in sources :

Example 6 with LazyLongIterable

use of org.eclipse.collections.api.LazyLongIterable in project mapdb by jankotek.

the class AbstractLazyLongIterableTestCase method asLazy.

@Test
public void asLazy() {
    LazyLongIterable iterable = this.classUnderTest();
    Assert.assertEquals(iterable.toSet(), iterable.asLazy().toSet());
    Verify.assertInstanceOf(LazyLongIterable.class, iterable.asLazy());
    Assert.assertSame(iterable, iterable.asLazy());
}
Also used : LazyLongIterable(org.eclipse.collections.api.LazyLongIterable) Test(org.junit.Test)

Aggregations

LazyLongIterable (org.eclipse.collections.api.LazyLongIterable)6 Test (org.junit.Test)6