18 |
|
} |
19 |
|
|
20 |
|
/** |
21 |
< |
* Create a map from Integers 1-5 to Strings "A"-"E". |
21 |
> |
* Returns a new map from Integers 1-5 to Strings "A"-"E". |
22 |
|
*/ |
23 |
|
private static ConcurrentNavigableMap map5() { |
24 |
|
ConcurrentSkipListMap map = new ConcurrentSkipListMap(); |
36 |
|
} |
37 |
|
|
38 |
|
/** |
39 |
< |
* Create a map from Integers -5 to -1 to Strings "A"-"E". |
39 |
> |
* Returns a new map from Integers -5 to -1 to Strings "A"-"E". |
40 |
|
*/ |
41 |
|
private static ConcurrentNavigableMap dmap5() { |
42 |
|
ConcurrentSkipListMap map = new ConcurrentSkipListMap(); |
69 |
|
public void testClear() { |
70 |
|
ConcurrentNavigableMap map = map5(); |
71 |
|
map.clear(); |
72 |
< |
assertEquals(map.size(), 0); |
72 |
> |
assertEquals(0, map.size()); |
73 |
|
} |
74 |
|
|
75 |
|
/** |
743 |
|
public void testDescendingClear() { |
744 |
|
ConcurrentNavigableMap map = dmap5(); |
745 |
|
map.clear(); |
746 |
< |
assertEquals(map.size(), 0); |
746 |
> |
assertEquals(0, map.size()); |
747 |
|
} |
748 |
|
|
749 |
|
/** |