Package com.hazelcast.core

Examples of com.hazelcast.core.IList.subList()


//  ===================== SubList ========================

    @Test
    public void testSublist() {
        IList list = newList_withInitialData(10);
        List listTest = list.subList(3, 7);
        assertEquals(4, listTest.size());
        assertIterableEquals(listTest, "item3", "item4", "item5", "item6");
    }

    @Test(expected = IndexOutOfBoundsException.class)
View Full Code Here


    }

    @Test(expected = IndexOutOfBoundsException.class)
    public void testSublist_whenFromIndexIllegal() {
        IList list = newList();
        list.subList(8, 7);
    }

    @Test(expected = IndexOutOfBoundsException.class)
    public void testSublist_whenToIndexIllegal() {
        IList list = newList_withInitialData(10);
View Full Code Here

    }

    @Test(expected = IndexOutOfBoundsException.class)
    public void testSublist_whenToIndexIllegal() {
        IList list = newList_withInitialData(10);
        list.subList(4, 14);
    }

//    ================== Iterator ====================

    @Test
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.