Code example for CharArrayReader

Methods: closereadyskip

0
 
    /** 
     * @tests java.io.CharArrayReader#ready() 
     */ 
    public void test_ready() throws IOException { 
        cr = new CharArrayReader(hw);
        assertTrue("ready returned false", cr.ready());
        cr.skip(1000);
        assertTrue("ready returned true", !cr.ready());
        cr.close();
 
        try { 
            cr.ready();
            fail("No exception 1");
        } catch (IOException e) {
            // expected 
        } 
        try { 
            cr = new CharArrayReader(hw);
            cr.close();
Stop searching for code, let great code find you!  Add Codota to your java IDE