69 |
|
} |
70 |
|
|
71 |
|
/** |
72 |
< |
* tes to verify enumeration returns an enumeration containing the correct elements |
72 |
> |
* enumeration returns an enumeration containing the correct |
73 |
> |
* elements |
74 |
|
*/ |
75 |
|
public void testEnumeration(){ |
76 |
|
ConcurrentHashMap map = map5(); |
84 |
|
} |
85 |
|
|
86 |
|
/** |
87 |
+ |
* Clone creates an equal map |
88 |
+ |
*/ |
89 |
+ |
public void testClone(){ |
90 |
+ |
ConcurrentHashMap map = map5(); |
91 |
+ |
ConcurrentHashMap m2 = (ConcurrentHashMap)(map.clone()); |
92 |
+ |
assertEquals(map, m2); |
93 |
+ |
} |
94 |
+ |
|
95 |
+ |
/** |
96 |
|
* get returns the correct element at the given index |
97 |
|
*/ |
98 |
|
public void testGet(){ |