test
Class TextUITestScript

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by 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.


Constructor Summary
TextUITestScript(File testFile)
           
 
Method Summary
protected  String fileContents(File f)
           
protected  File fileWithSuffix(String newSuffix)
           
protected  void setUp()
           
static Test suite()
           
 void testScriptFile()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextUITestScript

public TextUITestScript(File testFile)
Method Detail

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()