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.9 by jsr166, Sat Apr 25 04:55:31 2015 UTC vs.
Revision 1.10 by jsr166, Fri Nov 11 18:12:43 2016 UTC

# 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