|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gshute.ioutil.Tester
Class Tester is a base class for line-oriented, command-driven, interactive and batch testing.
Field Summary | |
protected LineStream |
commandStream
commandStream is the LineStream from which this Tester reads commands. |
protected CommandTable |
commandTable
commandTable is the table of Commands that this Tester can execute. |
protected java.lang.String |
prompt
prompt is the prompt that this Tester uses for interactive input. |
Constructor Summary | |
Tester()
Tester() returns a new Tester. |
Method Summary | |
void |
addCommands()
addCommands() adds testing commands to the command table. |
void |
doCommands()
doCommands() executes commands from the command stream. |
static void |
main(java.lang.String[] args)
If this program is executed with no command line argument then it executes commands entered from the terminal. |
void |
openStream(java.lang.String[] args)
openStream(args) checks the command line for a correct number of arguments and opens a source file if specified. |
void |
startInteractive()
startInteractive() prints messages to the interactive user describing how to use the program. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected LineStream commandStream
protected CommandTable commandTable
protected java.lang.String prompt
Constructor Detail |
public Tester()
Method Detail |
public void addCommands()
public void startInteractive()
public void openStream(java.lang.String[] args) throws java.io.FileNotFoundException, java.io.IOException
public void doCommands() throws java.io.IOException
public static void main(java.lang.String[] args) throws java.io.FileNotFoundException, java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |