edu.rice.cs.util
Class StreamRedirectorTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
edu.rice.cs.drjava.DrJavaTestCase
edu.rice.cs.util.StreamRedirectorTest
- All Implemented Interfaces:
- Test
public class StreamRedirectorTest
- extends DrJavaTestCase
Test suite over InputStreamRedirector.
|
Method Summary |
void |
testDynamicInput()
Tests that an InputStreamRedirector correctly redirects input that changes. |
void |
testEmptyInput()
Tests that an InputStreamRedirector correctly interprets empty input as end of stream. |
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 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 |
StreamRedirectorTest
public StreamRedirectorTest()
testEmptyInput
public void testEmptyInput()
throws java.io.IOException
- Tests that an InputStreamRedirector correctly interprets empty input as end of stream.
- Throws:
java.io.IOException
testStaticInput
public void testStaticInput()
throws java.io.IOException
- Tests that an InputStreamRedirector correctly redirects input that is static.
- Throws:
java.io.IOException
testDynamicInput
public void testDynamicInput()
throws java.io.IOException
- Tests that an InputStreamRedirector correctly redirects input that changes.
- Throws:
java.io.IOException
testMultiLineInput
public void testMultiLineInput()
throws java.io.IOException
- Tests that an InputStreamRedirector correctly calls _getInput() only
when it is needed.
- Throws:
java.io.IOException