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

Comparing jsr166/src/test/tck/CountDownLatchTest.java (file contents):
Revision 1.8 by jsr166, Mon Nov 2 20:28:31 2009 UTC vs.
Revision 1.9 by jsr166, Mon Nov 16 04:57:10 2009 UTC

# Line 25 | Line 25 | public class CountDownLatchTest extends
25          try {
26              new CountDownLatch(-1);
27              shouldThrow();
28 <        } catch(IllegalArgumentException success){}
28 >        } catch (IllegalArgumentException success){}
29      }
30  
31      /**
# Line 62 | Line 62 | public class CountDownLatchTest extends
62                          threadAssertTrue(l.getCount() > 0);
63                          l.await();
64                          threadAssertTrue(l.getCount() == 0);
65 <                    } catch(InterruptedException e){
65 >                    } catch (InterruptedException e){
66                          threadUnexpectedException();
67                      }
68                  }
# Line 93 | Line 93 | public class CountDownLatchTest extends
93                      try {
94                          threadAssertTrue(l.getCount() > 0);
95                          threadAssertTrue(l.await(SMALL_DELAY_MS, TimeUnit.MILLISECONDS));
96 <                    } catch(InterruptedException e){
96 >                    } catch (InterruptedException e){
97                          threadUnexpectedException();
98                      }
99                  }
# Line 123 | Line 123 | public class CountDownLatchTest extends
123                          threadAssertTrue(l.getCount() > 0);
124                          l.await();
125                          threadShouldThrow();
126 <                    } catch(InterruptedException success){}
126 >                    } catch (InterruptedException success){}
127                  }
128              });
129          t.start();
# Line 147 | Line 147 | public class CountDownLatchTest extends
147                          threadAssertTrue(l.getCount() > 0);
148                          l.await(MEDIUM_DELAY_MS, TimeUnit.MILLISECONDS);
149                          threadShouldThrow();
150 <                    } catch(InterruptedException success){}
150 >                    } catch (InterruptedException success){}
151                  }
152              });
153          t.start();
# Line 172 | Line 172 | public class CountDownLatchTest extends
172                          threadAssertTrue(l.getCount() > 0);
173                          threadAssertFalse(l.await(SHORT_DELAY_MS, TimeUnit.MILLISECONDS));
174                          threadAssertTrue(l.getCount() > 0);
175 <                    } catch(InterruptedException ie){
175 >                    } catch (InterruptedException ie){
176                          threadUnexpectedException();
177                      }
178                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines