Lines Matching refs:thread

181         Thread noOp = new Thread(testRoot, null, "no-op thread") {
188 // Wait for the no-op thread to run inside daemon ThreadGroup
197 assertTrue("Daemon group should have been destroyed already when last thread died", passed);
200 noOp = new Thread(testRoot, null, "no-op thread") {
211 // Has to execute the next lines in an interval < the sleep interval of the no-op thread
221 // But after the thread dies, we have to be able to destroy the thread group
284 // To maintain the invariant that a thread in the Vector is parent
511 Thread thread = new Thread(testRoot, null, "suicidal thread") {
517 thread.start();
518 waitForThreadToDieUninterrupted(thread);
519 testThreadDefaultUncaughtExceptionHandler.assertWasCalled(thread, threadDeath);
523 "Any thread should notify its ThreadGroup about its own death, even if suicide:"
545 Thread thread = new Thread(testRoot, null, "no-op thread");
546 thread.start();
547 waitForThreadToDieUninterrupted(thread);
550 assertFalse("A thread should not call uncaughtException when it dies:"
579 Thread thread = new Thread(testRoot, null, "RuntimeException thread") {
585 thread.start();
586 waitForThreadToDieUninterrupted(thread);
587 testThreadDefaultUncaughtExceptionHandler.assertWasCalled(thread, testException);
590 "Any thread should notify its ThreadGroup about an uncaught exception:"
616 Thread thread = new Thread(testRoot, null, "RuntimeException thread") {
622 thread.start();
623 waitForThreadToDieUninterrupted(thread);
648 Thread thread = new Thread(testRoot, null, "no-op thread") {
654 thread.start();
655 waitForThreadToDieUninterrupted(thread);
762 private static void waitForThreadToDieUninterrupted(Thread thread) {
764 thread.join();
775 private Thread thread;
778 public void uncaughtException(Thread thread, Throwable ex) {
780 this.thread = thread;
784 public void assertWasCalled(Thread thread, Throwable ex) {
786 assertSame(this.thread, thread);