ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/CopyOnWriteArraySetTest.java
(Generate patch)

Comparing jsr166/src/test/tck/CopyOnWriteArraySetTest.java (file contents):
Revision 1.15 by jsr166, Wed Aug 25 00:07:03 2010 UTC vs.
Revision 1.16 by jsr166, Sat Oct 9 19:30:35 2010 UTC

# Line 51 | Line 51 | public class CopyOnWriteArraySetTest ext
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);
# Line 64 | Line 64 | public class CopyOnWriteArraySetTest ext
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);
# Line 78 | Line 78 | public class CopyOnWriteArraySetTest ext
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);
# Line 87 | Line 87 | public class CopyOnWriteArraySetTest ext
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);
# Line 97 | Line 96 | public class CopyOnWriteArraySetTest ext
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);
# Line 106 | Line 105 | public class CopyOnWriteArraySetTest ext
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);
# Line 134 | Line 133 | public class CopyOnWriteArraySetTest ext
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);
# Line 147 | Line 146 | public class CopyOnWriteArraySetTest ext
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();
# Line 157 | Line 156 | public class CopyOnWriteArraySetTest ext
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);
# Line 194 | Line 193 | public class CopyOnWriteArraySetTest ext
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);
# Line 217 | Line 216 | public class CopyOnWriteArraySetTest ext
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();
# Line 227 | Line 226 | public class CopyOnWriteArraySetTest ext
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);
# Line 239 | Line 238 | public class CopyOnWriteArraySetTest ext
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);
# Line 254 | Line 253 | public class CopyOnWriteArraySetTest ext
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 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines