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

Comparing jsr166/src/test/tck/ThreadLocalRandom8Test.java (file contents):
Revision 1.8 by jsr166, Wed Dec 31 21:28:49 2014 UTC vs.
Revision 1.10 by jsr166, Fri Nov 11 18:12:43 2016 UTC

# Line 14 | Line 14 | import junit.framework.TestSuite;
14   public class ThreadLocalRandom8Test extends JSR166TestCase {
15  
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(ThreadLocalRandom8Test.class);
# Line 232 | Line 232 | public class ThreadLocalRandom8Test exte
232          assertEquals(size, counter.sum());
233      }
234  
235 +    /**
236 +     * A deserialized ThreadLocalRandom is always identical to
237 +     * ThreadLocalRandom.current()
238 +     */
239 +    public void testSerialization() {
240 +        assertSame(ThreadLocalRandom.current(),
241 +                   serialClone(ThreadLocalRandom.current()));
242 +    }
243 +
244   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines