diff options
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2016-03-15 09:37:42 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-03-15 09:37:42 +0000 |
commit | 37f9fec54f50b2e0898ee2b61d058c4de879e38b (patch) | |
tree | d7fd9980442e0d647e1454f54f3d037f4b2280e7 /jsr166-tests/src/test/java/jsr166/TimeUnitTest.java | |
parent | 8d28fc1d531b4b39def9598de89311aff112f955 (diff) | |
parent | 5328e07d282bef36ac8b757bbee16a761415b2c4 (diff) |
Merge "JSR-166 update"
Diffstat (limited to 'jsr166-tests/src/test/java/jsr166/TimeUnitTest.java')
-rw-r--r-- | jsr166-tests/src/test/java/jsr166/TimeUnitTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jsr166-tests/src/test/java/jsr166/TimeUnitTest.java b/jsr166-tests/src/test/java/jsr166/TimeUnitTest.java index 2c9529b43f..b21fa7d1ad 100644 --- a/jsr166-tests/src/test/java/jsr166/TimeUnitTest.java +++ b/jsr166-tests/src/test/java/jsr166/TimeUnitTest.java @@ -30,7 +30,7 @@ public class TimeUnitTest extends JSR166TestCase { // main(suite(), args); // } // public static Test suite() { - // return new TestSuite(...); + // return new TestSuite(TimeUnitTest.class); // } // (loops to 88888 check increments at all time divisions.) @@ -433,8 +433,8 @@ public class TimeUnitTest extends JSR166TestCase { * a deserialized serialized unit is the same instance */ public void testSerialization() throws Exception { - TimeUnit x = MILLISECONDS; - assertSame(x, serialClone(x)); + for (TimeUnit x : TimeUnit.values()) + assertSame(x, serialClone(x)); } } |