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

Comparing jsr166/src/test/tck/ExecutorsTest.java (file contents):
Revision 1.21 by jsr166, Mon Nov 16 04:57:10 2009 UTC vs.
Revision 1.22 by jsr166, Mon Nov 16 05:30:07 2009 UTC

# Line 13 | Line 13 | import java.util.concurrent.*;
13   import java.math.BigInteger;
14   import java.security.*;
15  
16 < public class ExecutorsTest extends JSR166TestCase{
16 > public class ExecutorsTest extends JSR166TestCase {
17      public static void main(String[] args) {
18          junit.textui.TestRunner.run (suite());
19      }
# Line 238 | Line 238 | public class ExecutorsTest extends JSR16
238              assertTrue(callable.done);
239              assertEquals(Boolean.TRUE, f.get());
240              joinPool(p1);
241 <        } catch (RejectedExecutionException e){}
242 <        catch (Exception e){
241 >        } catch (RejectedExecutionException e) {}
242 >        catch (Exception e) {
243              e.printStackTrace();
244              unexpectedException();
245          }
# Line 258 | Line 258 | public class ExecutorsTest extends JSR16
258              assertTrue(callable.done);
259              assertEquals(Boolean.TRUE, f.get());
260              joinPool(p1);
261 <        } catch (RejectedExecutionException e){}
262 <        catch (Exception e){
261 >        } catch (RejectedExecutionException e) {}
262 >        catch (Exception e) {
263              e.printStackTrace();
264              unexpectedException();
265          }
# Line 278 | Line 278 | public class ExecutorsTest extends JSR16
278              assertTrue(callable.done);
279              assertEquals(Boolean.TRUE, f.get());
280              joinPool(p1);
281 <        } catch (RejectedExecutionException e){}
282 <        catch (Exception e){
281 >        } catch (RejectedExecutionException e) {}
282 >        catch (Exception e) {
283              e.printStackTrace();
284              unexpectedException();
285          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines