16 |
|
} |
17 |
|
|
18 |
|
/** |
19 |
< |
* Create a map from Integers 1-5 to Strings "A"-"E". |
19 |
> |
* Creates a map from Integers 1-5 to Strings "A"-"E". |
20 |
|
*/ |
21 |
|
private static NavigableMap map5() { |
22 |
|
TreeMap map = new TreeMap(); |
40 |
|
} |
41 |
|
|
42 |
|
/** |
43 |
< |
* Create a map from Integers -5 to -1 to Strings "A"-"E". |
43 |
> |
* Creates a map from Integers -5 to -1 to Strings "A"-"E". |
44 |
|
*/ |
45 |
|
private static NavigableMap dmap5() { |
46 |
|
TreeMap map = new TreeMap(); |
67 |
|
public void testClear() { |
68 |
|
NavigableMap map = map5(); |
69 |
|
map.clear(); |
70 |
< |
assertEquals(map.size(), 0); |
70 |
> |
assertEquals(0, map.size()); |
71 |
|
} |
72 |
|
|
73 |
|
/** |
577 |
|
public void testDescendingClear() { |
578 |
|
NavigableMap map = dmap5(); |
579 |
|
map.clear(); |
580 |
< |
assertEquals(map.size(), 0); |
580 |
> |
assertEquals(0, map.size()); |
581 |
|
} |
582 |
|
|
583 |
|
/** |