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

Comparing jsr166/src/test/tck/TimeUnitTest.java (file contents):
Revision 1.10 by jsr166, Mon Nov 2 20:28:32 2009 UTC vs.
Revision 1.11 by jsr166, Mon Nov 16 04:57:10 2009 UTC

# Line 351 | Line 351 | public class TimeUnitTest extends JSR166
351                      catch (InterruptedException ie) {
352                          threadUnexpectedException();
353                      }
354 <                    catch(IllegalMonitorStateException success) {
354 >                    catch (IllegalMonitorStateException success) {
355                      }
356  
357                  }
# Line 361 | Line 361 | public class TimeUnitTest extends JSR166
361              Thread.sleep(SHORT_DELAY_MS);
362              t.interrupt();
363              t.join();
364 <        } catch(Exception e) {
364 >        } catch (Exception e) {
365              unexpectedException();
366          }
367      }
# Line 381 | Line 381 | public class TimeUnitTest extends JSR166
381                          }
382                          threadShouldThrow();
383                      }
384 <                    catch(InterruptedException success) {}
385 <                    catch(IllegalMonitorStateException failure) {
384 >                    catch (InterruptedException success) {}
385 >                    catch (IllegalMonitorStateException failure) {
386                          threadUnexpectedException();
387                      }
388                  }
# Line 392 | Line 392 | public class TimeUnitTest extends JSR166
392              Thread.sleep(SHORT_DELAY_MS);
393              t.interrupt();
394              t.join();
395 <        } catch(Exception e) {
395 >        } catch (Exception e) {
396              unexpectedException();
397          }
398      }
# Line 410 | Line 410 | public class TimeUnitTest extends JSR166
410                                  public void run() {
411                                      try {
412                                          Thread.sleep(MEDIUM_DELAY_MS);
413 <                                    } catch(InterruptedException success){}
413 >                                    } catch (InterruptedException success){}
414                                  }
415                              });
416                          s.start();
417                          tu.timedJoin(s,MEDIUM_DELAY_MS);
418                          threadShouldThrow();
419                      }
420 <                    catch(Exception e) {}
420 >                    catch (Exception e) {}
421                  }
422              });
423          t.start();
# Line 425 | Line 425 | public class TimeUnitTest extends JSR166
425              Thread.sleep(SHORT_DELAY_MS);
426              t.interrupt();
427              t.join();
428 <        } catch(Exception e) {
428 >        } catch (Exception e) {
429              unexpectedException();
430          }
431      }
# Line 443 | Line 443 | public class TimeUnitTest extends JSR166
443                          tu.sleep(MEDIUM_DELAY_MS);
444                          threadShouldThrow();
445                      }
446 <                    catch(InterruptedException success) {}
446 >                    catch (InterruptedException success) {}
447                  }
448              });
449          t.start();
# Line 451 | Line 451 | public class TimeUnitTest extends JSR166
451              Thread.sleep(SHORT_DELAY_MS);
452              t.interrupt();
453              t.join();
454 <        } catch(Exception e) {
454 >        } catch (Exception e) {
455              unexpectedException();
456          }
457      }
# Line 473 | Line 473 | public class TimeUnitTest extends JSR166
473              TimeUnit r = (TimeUnit)in.readObject();
474  
475              assertEquals(q.toString(), r.toString());
476 <        } catch(Exception e){
476 >        } catch (Exception e){
477              e.printStackTrace();
478              unexpectedException();
479          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines