/**
* 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) {
for (int size = minSize; size <= maxSize; ++size) {
testEmptyStack(size);
for (int numberOfObjects = 1;
numberOfObjects <= size;
++numberOfObjects) {
testStorage(size, numberOfObjects);
}
}
}
/**
* Retrieve the test protocol as string.
*
* @return test protocol.
*/
public String toString() {
return protocol.toString();
}
|