17 |
|
} |
18 |
|
|
19 |
|
/** |
20 |
< |
* Creates a map from Integers 1-5 to Strings "A"-"E". |
20 |
> |
* Returns a new map from Integers 1-5 to Strings "A"-"E". |
21 |
|
*/ |
22 |
|
private static ConcurrentSkipListMap map5() { |
23 |
|
ConcurrentSkipListMap map = new ConcurrentSkipListMap(); |
42 |
|
} |
43 |
|
|
44 |
|
/** |
45 |
< |
* |
45 |
> |
* copy constructor creates map equal to source map |
46 |
|
*/ |
47 |
|
public void testConstructFromSorted() { |
48 |
|
ConcurrentSkipListMap map = map5(); |
795 |
|
NavigableMap x = map5(); |
796 |
|
NavigableMap y = serialClone(x); |
797 |
|
|
798 |
< |
assertTrue(x != y); |
798 |
> |
assertNotSame(x, y); |
799 |
|
assertEquals(x.size(), y.size()); |
800 |
|
assertEquals(x.toString(), y.toString()); |
801 |
|
assertEquals(x, y); |