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

Comparing jsr166/src/test/tck/AtomicIntegerFieldUpdaterTest.java (file contents):
Revision 1.1 by dl, Sun Aug 31 19:24:53 2003 UTC vs.
Revision 1.2 by dl, Sun Sep 14 20:42:40 2003 UTC

# Line 9 | Line 9 | import java.util.concurrent.atomic.*;
9   import junit.framework.*;
10   import java.util.*;
11  
12 < public class AtomicIntegerFieldUpdaterTest extends TestCase{
12 > public class AtomicIntegerFieldUpdaterTest extends JSR166TestCase {
13      volatile int x = 0;
14 +    long z;
15  
16      public static void main(String[] args){
17          junit.textui.TestRunner.run(suite());
# Line 29 | Line 30 | public class AtomicIntegerFieldUpdaterTe
30              fail("Exception not thrown");
31          }
32          catch (RuntimeException rt) {}
33 +    }
34 +
35 +    public void testConstructor2(){
36 +        try{
37 +            AtomicIntegerFieldUpdater<AtomicIntegerFieldUpdaterTest>
38 +                a = AtomicIntegerFieldUpdater.newUpdater
39 +                (getClass(), "z");
40 +            fail("Exception not thrown");
41 +        }
42 +        catch (RuntimeException rt) {}
43      }
44  
45      public void testGetSet(){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines