[cvs] / jsr166 / src / test / tck / AtomicLongTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/AtomicLongTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9, Sun Jan 11 01:31:34 2004 UTC revision 1.10, Wed May 25 14:27:37 2005 UTC
# Line 46  Line 46 
46          assertEquals(-3,ai.get());          assertEquals(-3,ai.get());
47    
48      }      }
49    
50        /**
51         * get returns the last value lazySet in same thread
52         */
53        public void testGetLazySet(){
54            AtomicLong ai = new AtomicLong(1);
55            assertEquals(1,ai.get());
56            ai.lazySet(2);
57            assertEquals(2,ai.get());
58            ai.lazySet(-3);
59            assertEquals(-3,ai.get());
60    
61        }
62    
63      /**      /**
64       * compareAndSet succeeds in changing value if equal to expected else fails       * compareAndSet succeeds in changing value if equal to expected else fails
65       */       */

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8