[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.7, Fri Sep 26 15:33:13 2003 UTC revision 1.8, Mon Dec 22 00:48:55 2003 UTC
# Line 25  Line 25 
25          public PublicFutureTask(Callable r) { super(r); }          public PublicFutureTask(Callable r) { super(r); }
26          public boolean reset() { return super.reset(); }          public boolean reset() { return super.reset(); }
27          public void setCancelled() { super.setCancelled(); }          public void setCancelled() { super.setCancelled(); }
         public void setDone() { super.setDone(); }  
28          public void set(Object x) { super.set(x); }          public void set(Object x) { super.set(x); }
29          public void setException(Throwable t) { super.setException(t); }          public void setException(Throwable t) { super.setException(t); }
30      }      }
# Line 87  Line 86 
86          assertFalse(task.reset());          assertFalse(task.reset());
87      }      }
88    
     /**  
      * setDone of new task causes isDone to be true  
      */  
     public void testSetDone() {  
         PublicFutureTask task = new PublicFutureTask(new NoOpCallable());  
         task.setDone();  
         assertTrue(task.isDone());  
         assertFalse(task.isCancelled());  
     }  
89    
90      /**      /**
91       * setCancelled of a new task causes isCancelled to be true       * setCancelled of a new task causes isCancelled to be true

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8