hw7.test
Class HW7TestDriver

java.lang.Object
  extended by 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.


Constructor Summary
HW7TestDriver(File in, File out)
           
 
Method Summary
 void runTests()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

runTests

public void runTests()
              throws FileNotFoundException
Throws:
FileNotFoundException