Package chapter25

Examples of chapter25.MyLinkedList


        myList.addAll(42, new String[]{"fail"});
    }

    @Test(expected = NullPointerException.class)
    public void testMyList_Illegal5() {
        myList = new MyLinkedList();
        myList.addAll(new String[]{"norm"});
        myList.addAll(0, null);
    }
View Full Code Here


        myList.addAll(0, null);
    }

    @Test(expected = IllegalArgumentException.class)
    public void testMyList_Illegal6() {
        myList = new MyLinkedList();
        myList.addAll(new String[]{"norm"});
        myList.get(42);
    }
View Full Code Here

        myList.get(42);
    }

    @Test(expected = IllegalArgumentException.class)
    public void testMyList_Illegal7() {
        myList = new MyLinkedList();
        myList.get(-1);
    }
View Full Code Here

        myList.get(-1);
    }

    @Test(expected = IllegalArgumentException.class)
    public void testMyList_Illegal8() {
        myList = new MyLinkedList();
        myList.remove(-1);
    }
View Full Code Here

TOP

Related Classes of chapter25.MyLinkedList

Copyright © 2018 www.massapicom. 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.