A Class For Test Protocols V

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

TestProtocol.java
/**
 * Return the current test protocol as string.
 *
 * @return current test protocol.
 */
public String toString() {
   return protocol
      + "Passed "
      + numberOfPassedTests + "/" + numberOfTests
      + " tests.\n";
}

*The toString method returns the accumulated protocol and adds a summarizing line.
 

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