Code example for PipedReader

0
     * @since 1.6 
     */ 
    public void test_Constructor_I() throws Exception { 
        // Test for method java.io.PipedReader(int) 
        try { 
            preader = new PipedReader(-1);
            fail("Should throw IllegalArgumentException");
        } catch (IllegalArgumentException e) {
            // expected 
        } 
 
        try { 
            preader = new PipedReader(0);
            fail("Should throw IllegalArgumentException");
        } catch (IllegalArgumentException e) {
            // expected 
        } 
    } 
 
    /** 
     * @tests java.io.PipedReader#close()