A Class For Test Protocols

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

TestProtocol.java
public class TestProtocol {
   /**
    * Create a test protocol.
    */
   public TestProtocol() {
   }

   /**
    * Compare two objects for identity and protocol the
    * result.
    *
    * @param testdesc short description of the test.
    * @param returned object returned by test candidate.
    * @param expected expected object.
    */
   public void compare(String testdesc,
      Object returned, Object expected) {
   }

   // further compare methods for fundamental types ...

   /**
    * Return the current test protocol as string.
    *
    * @return current test protocol.
    */
   public String toString() {
   }
}

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