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

Comparing jsr166/src/test/tck/AtomicReferenceArrayTest.java (file contents):
Revision 1.3 by dl, Sun Sep 14 20:42:40 2003 UTC vs.
Revision 1.4 by dl, Sat Sep 20 18:20:07 2003 UTC

# Line 18 | Line 18 | public class AtomicReferenceArrayTest ex
18          return new TestSuite(AtomicReferenceArrayTest.class);
19      }
20  
21 +    /**
22 +     *
23 +     */
24      public void testConstructor(){
25          AtomicReferenceArray<Integer> ai = new AtomicReferenceArray<Integer>(SIZE);
26          for (int i = 0; i < SIZE; ++i) {
# Line 25 | Line 28 | public class AtomicReferenceArrayTest ex
28          }
29      }
30  
31 +    /**
32 +     *
33 +     */
34      public void testGetSet(){
35          AtomicReferenceArray ai = new AtomicReferenceArray(SIZE);
36          for (int i = 0; i < SIZE; ++i) {
# Line 37 | Line 43 | public class AtomicReferenceArrayTest ex
43          }
44      }
45  
46 +    /**
47 +     *
48 +     */
49      public void testCompareAndSet(){
50          AtomicReferenceArray ai = new AtomicReferenceArray(SIZE);
51          for (int i = 0; i < SIZE; ++i) {
# Line 51 | Line 60 | public class AtomicReferenceArrayTest ex
60          }
61      }
62  
63 +    /**
64 +     *
65 +     */
66      public void testWeakCompareAndSet(){
67          AtomicReferenceArray ai = new AtomicReferenceArray(SIZE);
68          for (int i = 0; i < SIZE; ++i) {
# Line 63 | Line 75 | public class AtomicReferenceArrayTest ex
75          }
76      }
77  
78 +    /**
79 +     *
80 +     */
81      public void testGetAndSet(){
82          AtomicReferenceArray ai = new AtomicReferenceArray(SIZE);
83          for (int i = 0; i < SIZE; ++i) {
# Line 73 | Line 88 | public class AtomicReferenceArrayTest ex
88          }
89      }
90  
91 +    /**
92 +     *
93 +     */
94      public void testSerialization() {
95          AtomicReferenceArray l = new AtomicReferenceArray(SIZE);
96          for (int i = 0; i < SIZE; ++i) {
# Line 93 | Line 111 | public class AtomicReferenceArrayTest ex
111                  assertEquals(r.get(i), l.get(i));
112              }
113          } catch(Exception e){
114 <            e.printStackTrace();
97 <            fail("unexpected exception");
114 >            unexpectedException();
115          }
116      }
117  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines