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

Comparing jsr166/src/test/tck/LongAdderTest.java (file contents):
Revision 1.4 by jsr166, Sun Jul 14 19:49:01 2013 UTC vs.
Revision 1.7 by jsr166, Fri Oct 16 16:32:15 2015 UTC

# Line 4 | Line 4
4   * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6  
7 < import junit.framework.*;
8 < import java.util.concurrent.*;
7 > import java.util.concurrent.CyclicBarrier;
8 > import java.util.concurrent.Executors;
9 > import java.util.concurrent.ExecutorService;
10   import java.util.concurrent.atomic.LongAdder;
11  
12 + import junit.framework.Test;
13 + import junit.framework.TestSuite;
14 +
15   public class LongAdderTest extends JSR166TestCase {
16      public static void main(String[] args) {
17 <        junit.textui.TestRunner.run(suite());
17 >        main(suite(), args);
18      }
19      public static Test suite() {
20          return new TestSuite(LongAdderTest.class);
# Line 58 | Line 62 | public class LongAdderTest extends JSR16
62      }
63  
64      /**
65 <     * reset zeroes sum
65 >     * reset() causes subsequent sum() to return zero
66       */
67      public void testReset() {
68          LongAdder ai = new LongAdder();
# Line 69 | Line 73 | public class LongAdderTest extends JSR16
73      }
74  
75      /**
76 <     * sumThenReset returns sum then zeros
76 >     * sumThenReset() returns sum; subsequent sum() returns zero
77       */
78      public void testSumThenReset() {
79          LongAdder ai = new LongAdder();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines