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

Comparing jsr166/src/test/tck/TimeUnitTest.java (file contents):
Revision 1.30 by jsr166, Sat Mar 26 06:58:47 2016 UTC vs.
Revision 1.32 by jsr166, Fri Aug 4 03:30:21 2017 UTC

# Line 526 | Line 526 | public class TimeUnitTest extends JSR166
526              }});
527  
528          await(pleaseInterrupt);
529 <        assertThreadStaysAlive(t);
529 >        assertThreadBlocks(t, Thread.State.TIMED_WAITING);
530          t.interrupt();
531          awaitTermination(t);
532      }
# Line 559 | Line 559 | public class TimeUnitTest extends JSR166
559              }});
560  
561          await(pleaseInterrupt);
562 <        assertThreadStaysAlive(t);
562 >        assertThreadBlocks(t, Thread.State.TIMED_WAITING);
563          t.interrupt();
564          awaitTermination(t);
565          s.interrupt();
# Line 590 | Line 590 | public class TimeUnitTest extends JSR166
590              }});
591  
592          await(pleaseInterrupt);
593 <        assertThreadStaysAlive(t);
593 >        assertThreadBlocks(t, Thread.State.TIMED_WAITING);
594          t.interrupt();
595          awaitTermination(t);
596      }
597  
598      /**
599 <     * a deserialized serialized unit is the same instance
599 >     * a deserialized/reserialized unit is the same instance
600       */
601      public void testSerialization() throws Exception {
602          for (TimeUnit x : TimeUnit.values())

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines