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

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

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

revision 1.17, Sat Nov 21 10:25:05 2009 UTC revision 1.20, Thu Sep 16 00:52:49 2010 UTC
# Line 88  Line 88 
88      public void testSet() throws Exception {      public void testSet() throws Exception {
89          PublicFutureTask task = new PublicFutureTask(new NoOpCallable());          PublicFutureTask task = new PublicFutureTask(new NoOpCallable());
90          task.set(one);          task.set(one);
91          assertEquals(task.get(), one);          assertSame(task.get(), one);
92      }      }
93    
94      /**      /**
# Line 229  Line 229 
229      }      }
230    
231      /**      /**
232       *  Cancelling a task causes timed get in another thread to throw CancellationException       *  Cancelling a task causes timed get in another thread to throw
233         *  CancellationException
234       */       */
235      public void testTimedGet_Cancellation() throws InterruptedException {      public void testTimedGet_Cancellation() throws InterruptedException {
236          final FutureTask ft =          final FutureTask ft =
# Line 253  Line 254 
254      }      }
255    
256      /**      /**
257       * Cancelling a task causes get in another thread to throw CancellationException       * Cancelling a task causes get in another thread to throw
258         * CancellationException
259       */       */
260      public void testGet_Cancellation() throws InterruptedException {      public void testGet_Cancellation() throws InterruptedException {
261          final FutureTask ft =          final FutureTask ft =

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.20

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8