16 |
|
} |
17 |
|
|
18 |
|
/** |
19 |
< |
* Creates a map from Integers 1-5 to Strings "A"-"E". |
19 |
> |
* Returns a new map from Integers 1-5 to Strings "A"-"E". |
20 |
|
*/ |
21 |
|
private static NavigableMap map5() { |
22 |
|
TreeMap map = new TreeMap(); |
40 |
|
} |
41 |
|
|
42 |
|
/** |
43 |
< |
* Creates a map from Integers -5 to -1 to Strings "A"-"E". |
43 |
> |
* Returns a new map from Integers -5 to -1 to Strings "A"-"E". |
44 |
|
*/ |
45 |
|
private static NavigableMap dmap5() { |
46 |
|
TreeMap map = new TreeMap(); |
429 |
|
NavigableMap x = map5(); |
430 |
|
NavigableMap y = serialClone(x); |
431 |
|
|
432 |
< |
assertTrue(x != y); |
432 |
> |
assertNotSame(x, y); |
433 |
|
assertEquals(x.size(), y.size()); |
434 |
|
assertEquals(x.toString(), y.toString()); |
435 |
|
assertEquals(x, y); |
956 |
|
NavigableMap x = dmap5(); |
957 |
|
NavigableMap y = serialClone(x); |
958 |
|
|
959 |
< |
assertTrue(x != y); |
959 |
> |
assertNotSame(x, y); |
960 |
|
assertEquals(x.size(), y.size()); |
961 |
|
assertEquals(x.toString(), y.toString()); |
962 |
|
assertEquals(x, y); |