Examples of MyArrayList


Examples of com.bogdankobylinsky.javalabs.advanced2.MyArrayList

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

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

Examples of com.bogdankobylinsky.javalabs.advanced2.MyArrayList

        myList.addAll(0, null);
    }

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

Examples of com.bogdankobylinsky.javalabs.advanced2.MyArrayList

        myList.get(42);
    }

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

Examples of com.bogdankobylinsky.javalabs.advanced2.MyArrayList

        myList.get(-1);
    }

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

Examples of com.bogdankobylinsky.javalabs.advanced2.MyArrayList

        myList.remove(-1);
    }

    @Test(expected = IllegalArgumentException.class)
    public void testMyList_Illegal9() {
        myList = new MyArrayList();
        myList.set(-1, "fail");
    }
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.