Package tests.api.java.util.HashMapTest

Examples of tests.api.java.util.HashMapTest.ReusableKey


    assertEquals("Could not retrieve element", "FVal 2", ((String) h.get("FKey 2"))
        );
   
   
    // Regression for HARMONY-262
    ReusableKey k = new ReusableKey();
    Hashtable h2 = new Hashtable();
    k.setKey(1);
    h2.put(k, "value1");

    k.setKey(13);
    assertNull(h2.get(k));

    k.setKey(12);
    assertNull(h2.get(k));
  }
View Full Code Here

TOP

Related Classes of tests.api.java.util.HashMapTest.ReusableKey

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.