Example usage for java.util IdentityHashMap toString

List of usage examples for java.util IdentityHashMap toString

Introduction

In this page you can find the example usage for java.util IdentityHashMap toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:com.google.gwt.emultest.java.util.IdentityHashMapTest.java

/**
 * Test method for 'java.util.AbstractMap.toString()'.
 *//*from ww w  .j  av  a2s . c o m*/
public void testToString() {
    IdentityHashMap hashMap = new IdentityHashMap();
    checkEmptyHashMapAssumptions(hashMap);
    hashMap.put(KEY_KEY, VALUE_VAL);
    String entryString = makeEntryString(KEY_KEY, VALUE_VAL);
    assertTrue(entryString.equals(hashMap.toString()));
}