Overview | Package | Class | Tree | Deprecated | Index | Help
| J avolution v5.2 (J2SE 1.5+)
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## javolution.testing
Class AssertionException

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              java.lang.RuntimeException
                  javolution.testing.AssertionException

All Implemented Interfaces:
  java.io.Serializable

    public class AssertionException

extends java.lang.RuntimeException

This class represents an exception which might be raised when a testing assertion fails (see `TestContext.REGRESSION`).

Version:
  5.2, August 5, 2007
Author:
  Jean-Marie Dautelle
See Also:
  Serialized Form

Constructor Summary
`AssertionException(java.lang.String message, java.lang.Object expected, java.lang.Object actual)` Creates an exception with the specified parameters.

Method Summary
`java.lang.Object` | `getActual()` Returns the actual value.
`java.lang.Object` | `getExpected()` Returns the expected value.
`java.lang.String` | `getMessage()` Returns the assertion message if any.
`java.lang.String` | `toString()` Returns the textual representation of this exception.

Methods inherited from class java.lang.Throwable
`fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### AssertionException

    public AssertionException(java.lang.String message,
                              java.lang.Object expected,
                              java.lang.Object actual)

  Creates an exception with the specified parameters.

  Parameters:
    `message` - the associated message or `null`
    `expected` - the expected value
    `actual` - the actual value

Method Detail

### getMessage

    public java.lang.String getMessage()

  Returns the assertion message if any.

  Overrides:
    `getMessage` in class `java.lang.Throwable`
  Returns:
    the assertion message or `null`

### getExpected

    public java.lang.Object getExpected()

  Returns the expected value.

  Returns:
    the assertion expected value.

### getActual

    public java.lang.Object getActual()

  Returns the actual value.

  Returns:
    the assertion actual value.

### toString

    public java.lang.String toString()

  Returns the textual representation of this exception.

  Overrides:
    `toString` in class `java.lang.Throwable`
  Returns:
    the string representation of the exception.

Overview | Package | Class | Tree | Deprecated | Index | Help
| J avolution v5.2 (J2SE 1.5+)
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005 - 2007 Javolution.