Code example for CharArrayReader

Methods: ready

0
     */ 
    public void test_Constructor$C() { 
        // Test for method java.io.CharArrayReader(char []) 
 
        try { 
            cr = new CharArrayReader(hw);
            assertTrue("Failed to create reader", cr.ready());
        } catch (IOException e) {
            fail("Exception determining ready state : " + e.getMessage());
        } 
    } 
 
    /** 
     * java.io.CharArrayReader#CharArrayReader(char[], int, int) 
     */ 
    public void test_Constructor$CII() throws IOException { 
        try { 
            cr = new CharArrayReader(null, 0, 0);
            fail("Test 1: NullPointerException expected.");
        } catch (NullPointerException e) {
            // Expected.