A Test Suite

 [Previous Chapter]  [Previous Page]  [Contents]  [Next Page]  [Next Chapter]

ArrayedStackTester.java
class ArrayedStackTester {
   /**
    * Prepare a test suite.
    */
   public ArrayedStackTester() {}

   /**
    * Test an empty stack.
    * @param size size of the stack.
    */
   public void testEmptyStack(int size) {}

   /**
    * Store some objects on a stack and verify that they
    * can all be retrieved.
    * @param size size of the stack
    * @param numberOfObjects number of objects to be stored.
    */
   public void testStorage(int size, int numberOfObjects) {}

   /**
    * Run the test suite on stacks of different sizes.
    * @param minSize   minimal stack size.
    * @param maxSize   maximal stack size.
    */
   public void runTestSuite(int minSize, int maxSize) {}

   /**
    * Retrieve the test protocol as string.
    * @return test protocol.
    */
   public String toString() { return ""; }
}

 [Previous Chapter]  [Previous Page]  [Contents]  [Next Page]  [Next Chapter]
Copyright © 2001, 2002 Andreas Borchert, converted to HTML on February 11, 2002