Code example for InterruptedIOException

Methods: toString

0
     * 
     * @param harness  the test harness (<code>null</code> not permitted). 
     */ 
    public void test(TestHarness harness)
    { 
        InterruptedIOException object1 = new InterruptedIOException();
        harness.check(object1 != null);
        harness.check(object1.toString(), "java.io.InterruptedIOException");
 
        InterruptedIOException object2 = new InterruptedIOException("nothing happens");
        harness.check(object2 != null);
        harness.check(object2.toString(), "java.io.InterruptedIOException: nothing happens");
 
        InterruptedIOException object3 = new InterruptedIOException(null);
        harness.check(object3 != null);
        harness.check(object3.toString(), "java.io.InterruptedIOException");
 
    } 
}