# | Line 19 | Line 19 | public class ConcurrentHashMapTest exten | |
---|---|---|
19 | } | |
20 | ||
21 | /** | |
22 | < | * Create a map from Integers 1-5 to Strings "A"-"E". |
22 | > | * Creates a map from Integers 1-5 to Strings "A"-"E". |
23 | */ | |
24 | private static ConcurrentHashMap map5() { | |
25 | ConcurrentHashMap map = new ConcurrentHashMap(5); | |
# | Line 40 | Line 40 | public class ConcurrentHashMapTest exten | |
40 | public void testClear() { | |
41 | ConcurrentHashMap map = map5(); | |
42 | map.clear(); | |
43 | < | assertEquals(map.size(), 0); |
43 | > | assertEquals(0, map.size()); |
44 | } | |
45 | ||
46 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |