Code example for PipedReader

Methods: read

0
    public void test_read$CII_2() throws IOException { 
        // Regression for HARMONY-387 
        PipedWriter pw = new PipedWriter();
        PipedReader obj = null;
        try { 
            obj = new PipedReader(pw);
            obj.read(new char[0], (int) 0, (int) -1);
            fail("IndexOutOfBoundsException expected");
        } catch (IndexOutOfBoundsException t) {
            assertEquals(
                    "IndexOutOfBoundsException rather than a subclass expected", 
                    IndexOutOfBoundsException.class, t.getClass());
        } 
    } 
 
    /** 
     * @tests java.io.PipedReader#read(char[], int, int) 
     */ 
    public void test_read$CII_3() throws IOException { 
        PipedWriter pw = new PipedWriter();
        PipedReader obj = null;