Code example for PushbackReader

Methods: close, read

0
	 * @tests java.io.PushbackReader#close() 
	 */ 
	public void test_close() { 
		// Test for method void java.io.PushbackReader.close() 
		try { 
			pbr.close();
			pbr.read();
		} catch (Exception e) {
			return; 
		} 
		fail("Failed to throw exception reading from closed reader");
	} 
 
	/** 
	 * @tests java.io.PushbackReader#mark(int) 
	 */ 
	public void test_markI() { 
		try { 
			pbr.mark(3);
		} catch (IOException e) {
			// correct