Code example for StringBufferInputStream

Methods: readskip

0
	/** 
	 * @tests java.io.StringBufferInputStream#skip(long) 
	 */ 
	public void test_skipJ() { 
		// Test for method long java.io.StringBufferInputStream.skip(long) 
		long s = sbis.skip(6);
		assertEquals("Unable to skip correct umber of chars", 6, s);
		assertEquals("Skip positioned at incorrect char", 'W', sbis.read());
	} 
 
	/** 
	 * Sets up the fixture, for example, open a network connection. This method 
	 * is called before a test is executed. 
	 */ 
	protected void setUp() { 
		sbis = new StringBufferInputStream("Hello World");
	} 
 
	/** 
	 * Tears down the fixture, for example, close a network connection. This 
Stop searching for code, let great code find you!  Add Codota to your java IDE