ps4.test
Class ScriptFileTests
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
ps4.test.ScriptFileTests
- All Implemented Interfaces:
- Test
public class ScriptFileTests
- extends TestCase
This class, along with a complete PS4TestDriver implementation,
can be used to test the your implementations of Graph and the
path finding algorithm using the script file format described
in the problem set. It is assumed that the files are
located in the same directory as this class.
Constructor Summary |
ScriptFileTests(File testDriver)
Creates a new ScriptFileTests case, which runs the given test file. |
Method Summary |
static Test |
suite()
Build a test suite of all of the script files in the directory. |
void |
testWithScriptFile()
The only test that is run: run a script file and test its output. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 |
ScriptFileTests
public ScriptFileTests(File testDriver)
- Creates a new ScriptFileTests case, which runs the given test file.
- Parameters:
testDriver
-
testWithScriptFile
public void testWithScriptFile()
throws IOException
- The only test that is run: run a script file and test its output.
- Throws:
IOException
suite
public static Test suite()
- Build a test suite of all of the script files in the directory.
- Returns:
- the test suite
- Throws:
URISyntaxException