hw7.test
Class HW7TestDriver
java.lang.Object
hw7.test.HW7TestDriver
public class HW7TestDriver
- extends Object
This class can be used to test your Campus Paths main application. It
redirects System.out and System.in to input and output files, then invokes
the application's main method. This allows the output of a set of commands
to be compared against the expected output without user intervention.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HW7TestDriver
public HW7TestDriver(File in,
File out)
- Requires:
- in != null && out != null
- Effects:
- Creates a new HW7TestDriver and runs the Campus Paths main
program with System.in and System.out redirected to the provided files.
runTests
public void runTests()
throws FileNotFoundException
- Throws:
FileNotFoundException