Package tests.support

Examples of tests.support.Support_MapTest2


  /**
   * @tests java.util.HashMap#HashMap()
   */
  public void test_Constructor() {
    // Test for method java.util.HashMap()
    new Support_MapTest2(new HashMap()).runTest();

    HashMap hm2 = new HashMap();
    assertEquals("Created incorrect HashMap", 0, hm2.size());
  }
View Full Code Here


    /**
     * @tests java.util.TreeMap#TreeMap()
     */
    public void test_Constructor() {
        // Test for method java.util.TreeMap()
        new Support_MapTest2(new TreeMap()).runTest();

        assertTrue("New treeMap non-empty", new TreeMap().isEmpty());
    }
View Full Code Here

  /**
   * @tests java.util.HashMap#HashMap()
   */
  public void test_Constructor() {
    // Test for method java.util.HashMap()
    new Support_MapTest2(new HashMap()).runTest();

    HashMap hm2 = new HashMap();
    assertEquals("Created incorrect HashMap", 0, hm2.size());
  }
View Full Code Here

  /**
   * @tests java.util.Hashtable#Hashtable()
   */
  public void test_Constructor() {
    // Test for method java.util.Hashtable()
    new Support_MapTest2(new Hashtable()).runTest();

    Hashtable h = new Hashtable();

    assertEquals("Created incorrect hashtable", 0, h.size());
  }
View Full Code Here

    /**
     * @tests java.util.TreeMap#TreeMap()
     */
    public void test_Constructor() {
        // Test for method java.util.TreeMap()
        new Support_MapTest2(new TreeMap()).runTest();

        assertTrue("New treeMap non-empty", new TreeMap().isEmpty());
    }
View Full Code Here

  /**
   * @tests java.util.Hashtable#Hashtable()
   */
  public void test_Constructor() {
    // Test for method java.util.Hashtable()
    new Support_MapTest2(new Hashtable()).runTest();

    Hashtable h = new Hashtable();

    assertEquals("Created incorrect hashtable", 0, h.size());
  }
View Full Code Here

  /**
   * @tests java.util.LinkedHashMap#LinkedHashMap()
   */
  public void test_Constructor() {
    // Test for method java.util.LinkedHashMap()
    new Support_MapTest2(new LinkedHashMap()).runTest();

    LinkedHashMap hm2 = new LinkedHashMap();
    assertEquals("Created incorrect LinkedHashMap", 0, hm2.size());
  }
View Full Code Here

  /**
   * @tests java.util.WeakHashMap#WeakHashMap()
   */
  public void test_Constructor() {
    // Test for method java.util.WeakHashMap()
    new Support_MapTest2(new WeakHashMap()).runTest();

    whm = new WeakHashMap();
    for (int i = 0; i < 100; i++)
      whm.put(keyArray[i], valueArray[i]);
    for (int i = 0; i < 100; i++)
View Full Code Here

  /**
   * @tests java.util.HashMap#HashMap()
   */
  public void test_Constructor() {
    // Test for method java.util.HashMap()
    new Support_MapTest2(new HashMap()).runTest();

    HashMap hm2 = new HashMap();
    assertEquals("Created incorrect HashMap", 0, hm2.size());
  }
View Full Code Here

  /**
   * @tests java.util.IdentityHashMap#IdentityHashMap()
   */
  public void test_Constructor() {
    // Test for method java.util.IdentityHashMap()
    new Support_MapTest2(new IdentityHashMap()).runTest();

    IdentityHashMap hm2 = new IdentityHashMap();
    assertEquals("Created incorrect IdentityHashMap", 0, hm2.size());
  }
View Full Code Here

TOP

Related Classes of tests.support.Support_MapTest2

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.