// Approach 1:  Testing Shell

import java.io.*;
import java.util.*;
import java.lang.String.*;

/**
 *Test Case Generator
 *takes a file name of a test case file.
 *each new test case must be marked by a "####"
 *April 24, 2001
 */


public class TestGenerator2 {

    int i;
    String fileName;

    TestGenerator2 (String testFileName) {
        i = 1;
        fileName = testFileName;
    }

    //this is the program that gets and returns the test case.  It inputs a string fileName that is the name of the file and an int i that indicates which test case you want--eventually this will be automatic but for testing purposes it is imputted
    public String getTestCase() {
        SimpleOutput out = new SimpleOutput ();
        String results;

        out.println ("TestGenerator2::getTestCase called with no parameters: ");

        switch (i) {
            case 1: results = "(table1 2 5)";
                break;
            case 2: results = "(table2 2 5)";
                break;
            case 3: results = "(long-output-loop 5)";
                break;
            case 4: results = "(long-loop 3)";
                break;
            default: results = "notestcases";
                break;
        }
        i++;
        out.println ("    returning test case:  " + results);
        return results;
	   
    } //getTestCase
} //class



