test
Class TextUITestScript
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
test.TextUITestScript
- All Implemented Interfaces:
- Test
public class TextUITestScript
- extends TestCase
Script unit tests for the TextUI class.
Based off 6.170's ps4.test.ScriptFileTests.
| 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 |
TextUITestScript
public TextUITestScript(File testFile)
fileContents
protected String fileContents(File f)
throws IOException
- Throws:
FileNotFoundException, - IOException
IOException- Requires:
- that the specified File exists
- Returns:
- the contents of that file
fileWithSuffix
protected File fileWithSuffix(String newSuffix)
- Parameters:
newSuffix -
- Returns:
- a File with the same name as testDriver, except that the test
suffix is replaced by the given suffix
setUp
protected void setUp()
- Overrides:
setUp in class TestCase
testScriptFile
public void testScriptFile()
throws IOException
- Throws:
IOException
suite
public static Test suite()