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.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

    // Test for method java.util.Vector()

    Vector tv = new Vector(100);
    for (int i = 0; i < 100; i++)
      tv.addElement(new Integer(i));
    new Support_ListTest("", tv).runTest();

    tv = new Vector(200);
    for (int i = -50; i < 150; i++)
      tv.addElement(new Integer(i));
    new Support_ListTest("", tv.subList(50, 150)).runTest();

    Vector v = new Vector();
    assertEquals("Vector creation failed", 0, v.size());
    assertEquals("Wrong capacity", 10, v.capacity());
  }
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

    List myList;
    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();
  }
View Full Code Here

    // Test for method java.util.Vector()

    Vector tv = new Vector(100);
    for (int i = 0; i < 100; i++)
      tv.addElement(new Integer(i));
    new Support_ListTest("", tv).runTest();

    tv = new Vector(200);
    for (int i = -50; i < 150; i++)
      tv.addElement(new Integer(i));
    new Support_ListTest("", tv.subList(50, 150)).runTest();

    Vector v = new Vector();
    assertEquals("Vector creation failed", 0, v.size());
    assertEquals("Wrong capacity", 10, v.capacity());
  }
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

  /**
   * @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

    List myList;
    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();
  }
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.