/** A program that tests the SortedEmployees class
  by creating an object of the class, and testing
  its sort() nad output() methods; the input and output
  file names are psssed to the main() via the command line
  (Oct. 28, 2001)
*/
public class TestSortedEmployees {
  public static void main(String[] args) {

    if (args.length != 2) { // missing arguments passed to main()
      System.out.println("Usage: java Arguments arg1 arg2");
      System.exit(-1); // terminate
    }
    /* otherwise, use args[0], args[1] as input and 
       output file names, respectively, to test 
       the sort() and output() methods */

    SortedEmployees employees = new SortedEmployees(args[0]);
    employees.sort();
    employees.output(args[1]);

  }  // end of main()
}
