Class TestFailedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TestFailedException
    extends java.lang.Exception
    An exception that is thrown when a test produces an incorrect result.
    Version:
    $Id$
    Author:
    John Reekie
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Object first
      One of the objects involved in the failed test.
      java.lang.Object second
      Another of the objects involved in the failed test.
    • Constructor Summary

      Constructors 
      Constructor Description
      TestFailedException​(java.lang.String message)
      Create a new test exception with a detail message
      TestFailedException​(java.lang.String message, java.lang.Object a)
      Create a new test exception with a detail message and one additional object.
      TestFailedException​(java.lang.String message, java.lang.Object a, java.lang.Object b)
      Create a new test exception with a detail message and two additional objects.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • first

        public java.lang.Object first
        One of the objects involved in the failed test.
      • second

        public java.lang.Object second
        Another of the objects involved in the failed test.
    • Constructor Detail

      • TestFailedException

        public TestFailedException​(java.lang.String message)
        Create a new test exception with a detail message
      • TestFailedException

        public TestFailedException​(java.lang.String message,
                                   java.lang.Object a)
        Create a new test exception with a detail message and one additional object.
      • TestFailedException

        public TestFailedException​(java.lang.String message,
                                   java.lang.Object a,
                                   java.lang.Object b)
        Create a new test exception with a detail message and two additional objects.