uwcse.collections
Class ListTester
java.lang.Object
|
+--uwcse.collections.Tester
|
+--uwcse.collections.ListTester
- public class ListTester
- extends Tester
A simple test harness for testing implementations of the SimpleList
interface. A console oriented, menu driven interaction allows the
user to perform operations on the given list. Because it uses console
IO, this application is easily scriptable, to perform batch testing.
Constructor Summary |
ListTester(SimpleList list,
java.io.Reader r,
boolean doPrompt)
Make a new tester object for the given list. |
Method Summary |
void |
test()
The main test method. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListTester
public ListTester(SimpleList list,
java.io.Reader r,
boolean doPrompt)
- Make a new tester object for the given list.
test
public void test()
throws java.io.IOException
- The main test method. Loops forever, prompting the user for
an action, and then dispatching.