equal
deleted
inserted
replaced
26 * @bug 6585904 |
26 * @bug 6585904 |
27 * @run testng CheckedIdentityMap |
27 * @run testng CheckedIdentityMap |
28 * @summary Checked collections with underlying maps with identity comparisons |
28 * @summary Checked collections with underlying maps with identity comparisons |
29 */ |
29 */ |
30 |
30 |
31 import java.util.*; |
31 import org.testng.annotations.Test; |
32 import static java.util.Collections.*; |
|
33 |
32 |
|
33 import java.util.IdentityHashMap; |
|
34 import java.util.Map; |
|
35 |
|
36 import static java.util.Collections.checkedMap; |
34 import static org.testng.Assert.assertEquals; |
37 import static org.testng.Assert.assertEquals; |
35 import static org.testng.Assert.assertNotEquals; |
38 import static org.testng.Assert.assertNotEquals; |
36 |
|
37 import org.testng.annotations.Test; |
|
38 |
39 |
39 public class CheckedIdentityMap { |
40 public class CheckedIdentityMap { |
40 |
41 |
41 @Test |
42 @Test |
42 public void testHashCode() { |
43 public void testHashCode() { |