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

Comparing jsr166/src/test/tck/AtomicLongTest.java (file contents):
Revision 1.28 by jsr166, Wed Dec 31 19:21:20 2014 UTC vs.
Revision 1.34 by dl, Tue Jan 26 13:33:05 2021 UTC

# Line 13 | Line 13 | import junit.framework.TestSuite;
13  
14   public class AtomicLongTest extends JSR166TestCase {
15      public static void main(String[] args) {
16 <        junit.textui.TestRunner.run(suite());
16 >        main(suite(), args);
17      }
18      public static Test suite() {
19          return new TestSuite(AtomicLongTest.class);
# Line 102 | Line 102 | public class AtomicLongTest extends JSR1
102       * repeated weakCompareAndSet succeeds in changing value when equal
103       * to expected
104       */
105 +    @SuppressWarnings("deprecation")
106      public void testWeakCompareAndSet() {
107          AtomicLong ai = new AtomicLong(1);
108          do {} while (!ai.weakCompareAndSet(1, 2));
# Line 193 | Line 194 | public class AtomicLongTest extends JSR1
194      }
195  
196      /**
197 <     * a deserialized serialized atomic holds same value
197 >     * a deserialized/reserialized atomic holds same value
198       */
199      public void testSerialization() throws Exception {
200          AtomicLong x = new AtomicLong();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines