51 |
|
|
52 |
|
|
53 |
|
/** |
54 |
< |
* addAll adds each element from the given collection |
54 |
> |
* addAll adds each element from the given collection |
55 |
|
*/ |
56 |
|
public void testAddAll() { |
57 |
|
CopyOnWriteArraySet full = populatedSet(3); |
64 |
|
} |
65 |
|
|
66 |
|
/** |
67 |
< |
* addAll adds each element from the given collection that did not |
68 |
< |
* already exist in the set |
67 |
> |
* addAll adds each element from the given collection that did not |
68 |
> |
* already exist in the set |
69 |
|
*/ |
70 |
|
public void testAddAll2() { |
71 |
|
CopyOnWriteArraySet full = populatedSet(3); |
78 |
|
} |
79 |
|
|
80 |
|
/** |
81 |
< |
* add will not add the element if it already exists in the set |
81 |
> |
* add will not add the element if it already exists in the set |
82 |
|
*/ |
83 |
|
public void testAdd2() { |
84 |
|
CopyOnWriteArraySet full = populatedSet(3); |
87 |
|
} |
88 |
|
|
89 |
|
/** |
90 |
< |
* add adds the element when it does not exist |
91 |
< |
* in the set |
90 |
> |
* add adds the element when it does not exist in the set |
91 |
|
*/ |
92 |
|
public void testAdd3() { |
93 |
|
CopyOnWriteArraySet full = populatedSet(3); |
96 |
|
} |
97 |
|
|
98 |
|
/** |
99 |
< |
* clear removes all elements from the set |
99 |
> |
* clear removes all elements from the set |
100 |
|
*/ |
101 |
|
public void testClear() { |
102 |
|
CopyOnWriteArraySet full = populatedSet(3); |
105 |
|
} |
106 |
|
|
107 |
|
/** |
108 |
< |
* contains returns true for added elements |
108 |
> |
* contains returns true for added elements |
109 |
|
*/ |
110 |
|
public void testContains() { |
111 |
|
CopyOnWriteArraySet full = populatedSet(3); |
133 |
|
|
134 |
|
|
135 |
|
/** |
136 |
< |
* containsAll returns true for collections with subset of elements |
136 |
> |
* containsAll returns true for collections with subset of elements |
137 |
|
*/ |
138 |
|
public void testContainsAll() { |
139 |
|
CopyOnWriteArraySet full = populatedSet(3); |
146 |
|
} |
147 |
|
|
148 |
|
/** |
149 |
< |
* isEmpty is true when empty, else false |
149 |
> |
* isEmpty is true when empty, else false |
150 |
|
*/ |
151 |
|
public void testIsEmpty() { |
152 |
|
CopyOnWriteArraySet empty = new CopyOnWriteArraySet(); |
156 |
|
} |
157 |
|
|
158 |
|
/** |
159 |
< |
* iterator() returns an iterator containing the elements of the set |
159 |
> |
* iterator() returns an iterator containing the elements of the set |
160 |
|
*/ |
161 |
|
public void testIterator() { |
162 |
|
CopyOnWriteArraySet full = populatedSet(3); |
193 |
|
|
194 |
|
|
195 |
|
/** |
196 |
< |
* removeAll removes all elements from the given collection |
196 |
> |
* removeAll removes all elements from the given collection |
197 |
|
*/ |
198 |
|
public void testRemoveAll() { |
199 |
|
CopyOnWriteArraySet full = populatedSet(3); |
216 |
|
} |
217 |
|
|
218 |
|
/** |
219 |
< |
* size returns the number of elements |
219 |
> |
* size returns the number of elements |
220 |
|
*/ |
221 |
|
public void testSize() { |
222 |
|
CopyOnWriteArraySet empty = new CopyOnWriteArraySet(); |
226 |
|
} |
227 |
|
|
228 |
|
/** |
229 |
< |
* toArray returns an Object array containing all elements from the set |
229 |
> |
* toArray returns an Object array containing all elements from the set |
230 |
|
*/ |
231 |
|
public void testToArray() { |
232 |
|
CopyOnWriteArraySet full = populatedSet(3); |
238 |
|
} |
239 |
|
|
240 |
|
/** |
241 |
< |
* toArray returns an Integer array containing all elements from |
242 |
< |
* the set |
241 |
> |
* toArray returns an Integer array containing all elements from |
242 |
> |
* the set |
243 |
|
*/ |
244 |
|
public void testToArray2() { |
245 |
|
CopyOnWriteArraySet full = populatedSet(3); |
253 |
|
|
254 |
|
|
255 |
|
/** |
256 |
< |
* toArray throws an ArrayStoreException when the given array can |
257 |
< |
* not store the objects inside the set |
256 |
> |
* toArray throws an ArrayStoreException when the given array can |
257 |
> |
* not store the objects inside the set |
258 |
|
*/ |
259 |
|
public void testToArray_ArrayStoreException() { |
260 |
|
try { |