Package org.dbunit

Class AbstractDbUnitExceptionTest<T extends Exception>

java.lang.Object
org.dbunit.AbstractDbUnitExceptionTest<T>
Type Parameters:
T - the exception type under test

public abstract class AbstractDbUnitExceptionTest<T extends Exception> extends Object
Abstract base for unit tests of DbUnit exception types that support the four standard constructor signatures: no-arg, message-only, message+cause, and cause-only.

Subclasses implement the four factory methods and inherit the four standard constructor tests; type-specific tests are added in the subclass.

Author:
DbUnit.org
  • Constructor Details

    • AbstractDbUnitExceptionTest

      public AbstractDbUnitExceptionTest()
  • Method Details

    • createException

      protected abstract T createException()
    • createException

      protected abstract T createException(String message)
    • createException

      protected abstract T createException(String message, Throwable cause)
    • createException

      protected abstract T createException(Throwable cause)