Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

openfuture.util.misc.testcase
Class StripWhitespaceReaderTestCase  view StripWhitespaceReaderTestCase download StripWhitespaceReaderTestCase.java

java.lang.Object
  extended byTestCase
      extended byopenfuture.util.misc.testcase.StripWhitespaceReaderTestCase

public class StripWhitespaceReaderTestCase
extends TestCase

Testsuite for StripWhitespaceReader. Created: Wed May 02 19:17:36 2001

Version:
$Revision: 1.1.1.1 $

Constructor Summary
StripWhitespaceReaderTestCase(java.lang.String name)
          Creates a new StripWhitespaceReaderTestCase instance.
 
Method Summary
protected  int read(java.lang.String init, char[] buffer, int offset, int len)
          Read maximal len characters into the character buffer buffer[].
protected  java.lang.String readAll(java.lang.String init)
          Read the complete content of the stream and count the number of characters occured.
 void testFilterStream()
          Test reading strings containing only whitespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StripWhitespaceReaderTestCase

public StripWhitespaceReaderTestCase(java.lang.String name)
Creates a new StripWhitespaceReaderTestCase instance.

Method Detail

testFilterStream

public void testFilterStream()
                      throws java.lang.Exception
Test reading strings containing only whitespace.


readAll

protected java.lang.String readAll(java.lang.String init)
                            throws java.io.IOException
Read the complete content of the stream and count the number of characters occured. The init string is processed by StripWhitespaceReader.


read

protected int read(java.lang.String init,
                   char[] buffer,
                   int offset,
                   int len)
            throws java.io.IOException
Read maximal len characters into the character buffer buffer[]. The buffer is filled starting at offset. The init string is processed by StripWhitespaceReader.