Package tests.support

Examples of tests.support.Support_ListTest


    /**
     * @tests java.util.ArrayList#ArrayList()
     */
    public void test_Constructor() {
        // Test for method java.util.ArrayList()
        new Support_ListTest("", alist).runTest();

        ArrayList subList = new ArrayList();
        for (int i = -50; i < 150; i++)
            subList.add(new Integer(i));
        new Support_ListTest("", subList.subList(50, 150)).runTest();
    }
View Full Code Here


  /**
   * @tests java.util.LinkedList#LinkedList()
   */
  public void test_Constructor() {
    // Test for method java.util.LinkedList()
    new Support_ListTest("", ll).runTest();

    LinkedList subList = new LinkedList();
    for (int i = -50; i < 150; i++)
      subList.add(new Integer(i));
    new Support_ListTest("", subList.subList(50, 150)).runTest();
  }
View Full Code Here

    /**
     * @tests java.util.ArrayList#ArrayList()
     */
    public void test_Constructor() {
        // Test for method java.util.ArrayList()
        new Support_ListTest("", alist).runTest();

        ArrayList subList = new ArrayList();
        for (int i = -50; i < 150; i++)
            subList.add(new Integer(i));
        new Support_ListTest("", subList.subList(50, 150)).runTest();
    }
View Full Code Here

    for (int i = 0; i < 100; i++) {
      smallList.add(objArray[i]);
    }
    myList = Collections.synchronizedList(smallList);

    new Support_ListTest("", myList).runTest();
       
    // test with a Random Access List
    smallList = new ArrayList();
    testSynchronizedList(smallList, "Random Access");

    smallList = new ArrayList();
    for (int i = 0; i < 100; i++) {
      smallList.add(objArray[i]);
    }
    myList = Collections.synchronizedList(smallList);
    new Support_ListTest("", myList).runTest();
       
    //Test self reference
        myList = Collections.synchronizedList(smallList);
        myList.add(smallList);
        assertTrue("should contain self ref", myList.toString().indexOf("(this") > -1);
View Full Code Here

    /**
     * @tests java.util.ArrayList#ArrayList()
     */
    public void test_Constructor() {
        // Test for method java.util.ArrayList()
        new Support_ListTest("", alist).runTest();

        ArrayList subList = new ArrayList();
        for (int i = -50; i < 150; i++)
            subList.add(new Integer(i));
        new Support_ListTest("", subList.subList(50, 150)).runTest();
    }
View Full Code Here

TOP

Related Classes of tests.support.Support_ListTest

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.