edu.rice.cs.util
Class StreamRedirectorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.rice.cs.drjava.DrJavaTestCase
              extended by edu.rice.cs.util.StreamRedirectorTest
All Implemented Interfaces:
Test

public class StreamRedirectorTest
extends DrJavaTestCase

Test suite over InputStreamRedirector.


Field Summary
 
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase
TEST_DRJAVA_CONFIG_PROPERTY
 
Constructor Summary
StreamRedirectorTest()
           
 
Method Summary
 void testDynamicInput()
          Tests that an InputStreamRedirector correctly redirects input that changes.
 void testEmptyInput()
          Tests that an InputStreamRedirector correctly rejects empty input.
 void testMultiLineInput()
          Tests that an InputStreamRedirector correctly calls _getInput() only when it is needed.
 void testStaticInput()
          Tests that an InputStreamRedirector correctly redirects input that is static.
 
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase
setConfigSetting, setDocText, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamRedirectorTest

public StreamRedirectorTest()
Method Detail

testEmptyInput

public void testEmptyInput()
                    throws IOException
Tests that an InputStreamRedirector correctly rejects empty input.

Throws:
IOException

testStaticInput

public void testStaticInput()
                     throws IOException
Tests that an InputStreamRedirector correctly redirects input that is static.

Throws:
IOException

testDynamicInput

public void testDynamicInput()
                      throws IOException
Tests that an InputStreamRedirector correctly redirects input that changes.

Throws:
IOException

testMultiLineInput

public void testMultiLineInput()
                        throws IOException
Tests that an InputStreamRedirector correctly calls _getInput() only when it is needed.

Throws:
IOException