[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.2, Sun Sep 7 20:39:11 2003 UTC revision 1.3, Fri Sep 12 15:40:25 2003 UTC
# Line 21  Line 21 
21      private static long MEDIUM_DELAY_MS = 1000;      private static long MEDIUM_DELAY_MS = 1000;
22      private static long LONG_DELAY_MS = 10000;      private static long LONG_DELAY_MS = 10000;
23    
24        public void testConstructor(){
25            try {
26                FutureTask task = new FutureTask(null);
27                fail("should throw");
28            }
29            catch(NullPointerException success) {
30            }
31        }
32    
33        public void testConstructor2(){
34            try {
35                FutureTask task = new FutureTask(null, Boolean.TRUE);
36                fail("should throw");
37            }
38            catch(NullPointerException success) {
39            }
40        }
41    
42      public void testIsDone(){      public void testIsDone(){
43          FutureTask task = new FutureTask( new Callable() {          FutureTask task = new FutureTask( new Callable() {
44                  public Object call() { return Boolean.TRUE; } });                  public Object call() { return Boolean.TRUE; } });

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8