System.out.println("InterruptTest.runTest(" + modeToString(t.getMode()) + "): thread.isAlive()=" + thread.isAlive()); assertTrue(!thread.isAlive());
System.out.println("InterruptTest.runTest(" + modeToString(thread.getMode()) + "): sleeping for " + TIMEOUT + " msecs"); sleep(TIMEOUT); System.out.println("InterruptTest.runTest(" + modeToString(thread.getMode()) + "): sleeping -- done");  System.out.println("InterruptTest.runTest(" + modeToString(thread.getMode()) + "): interrupting other thread"); thread.interrupt(); System.out.println("InterruptTest.runTest(" + modeToString(thread.getMode()) + "): interrupting other thread -- done");  System.out.println("InterruptTest.runTest(" + modeToString(thread.getMode()) + "): joining other thread (timeout=" + TIMEOUT + " msecs"); try { thread.join(TIMEOUT); } catch(InterruptedException e) { e.printStackTrace(); } System.out.println("InterruptTest.runTest(" + modeToString(thread.getMode()) + "): joining other thread -- done");  System.out.println("InterruptTest.runTest(" + modeToString(thread.getMode()) + "): thread.isAlive()=" + thread.isAlive()); assertTrue(!thread.isAlive());
    void runTest(Interruptible t) {	System.out.println();	System.out.println("InterruptTest.runTest(" + modeToString(t.getMode()) + "): starting other thread");	thread.start();	System.out.println("InterruptTest.runTest(" + modeToString(t.getMode()) + "): starting other thread -- done");		System.out.println("InterruptTest.runTest(" + modeToString(t.getMode()) + "): sleeping for " + TIMEOUT + " msecs");	sleep(TIMEOUT);	System.out.println("InterruptTest.runTest(" + modeToString(t.getMode()) + "): sleeping -- done");		System.out.println("InterruptTest.runTest(" + modeToString(t.getMode()) + "): interrupting other thread");	thread.interrupt();	System.out.println("InterruptTest.runTest(" + modeToString(t.getMode()) + "): interrupting other thread -- done");		System.out.println("InterruptTest.runTest(" + modeToString(t.getMode()) + "): joining other thread (timeout=" + TIMEOUT + " msecs");	thread.join(TIMEOUT);	System.out.println("InterruptTest.runTest(" + modeToString(t.getMode()) + "): joining other thread -- done");	System.out.println("InterruptTest.runTest(" + modeToString(t.getMode()) + "): thread.isAlive()=" + thread.isAlive());	assertTrue(!thread.isAlive());    }