[cvs] / jsr166 / src / test / tck / TimeUnitTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/TimeUnitTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14, Sat Nov 21 02:07:27 2009 UTC revision 1.19, Tue Mar 15 19:47:07 2011 UTC
# Line 1  Line 1 
1  /*  /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at   * Expert Group and released to the public domain, as explained at
4   * http://creativecommons.org/licenses/publicdomain   * http://creativecommons.org/publicdomain/zero/1.0/
5   * Other contributors include Andrew Wright, Jeffrey Hayes,   * Other contributors include Andrew Wright, Jeffrey Hayes,
6   * Pat Fisher, Mike Judd.   * Pat Fisher, Mike Judd.
7   */   */
# Line 309  Line 309 
309          assertEquals(Long.MIN_VALUE,          assertEquals(Long.MIN_VALUE,
310                       TimeUnit.NANOSECONDS.convert(-Long.MAX_VALUE / 4,                       TimeUnit.NANOSECONDS.convert(-Long.MAX_VALUE / 4,
311                                                    TimeUnit.DAYS));                                                    TimeUnit.DAYS));
   
312      }      }
313    
314      /**      /**
# Line 385  Line 384 
384              public void realRun() throws InterruptedException {              public void realRun() throws InterruptedException {
385                  TimeUnit tu = TimeUnit.MILLISECONDS;                  TimeUnit tu = TimeUnit.MILLISECONDS;
386                  tu.timedJoin(s, MEDIUM_DELAY_MS);                  tu.timedJoin(s, MEDIUM_DELAY_MS);
387              }});;              }});
388          s.start();          s.start();
389          t.start();          t.start();
390          Thread.sleep(SHORT_DELAY_MS);          Thread.sleep(SHORT_DELAY_MS);

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.19

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8