Code example for StringBufferInputStream

Methods: read

0
	 * @tests java.io.StringBufferInputStream#read(byte[], int, int) 
	 */ 
	public void test_read$BII() { 
		// Test for method int java.io.StringBufferInputStream.read(byte [], 
		// int, int) 
		assertEquals("Read returned incorrect char", 'H', sbis.read());
	} 
 
	/** 
	 * @tests java.io.StringBufferInputStream#reset() 
	 */ 
	public void test_reset() { 
		// Test for method void java.io.StringBufferInputStream.reset() 
		long s = sbis.skip(6);
		assertEquals("Unable to skip correct umber of chars", 6, s);
		sbis.reset();
		assertEquals("Failed to reset", 'H', sbis.read());
	} 
 
	/** 
Stop searching for code, let great code find you!  Add Codota to your java IDE