Package org.dbunit

Class DBTestCase

All Implemented Interfaces:
org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.InvocationInterceptor, org.junit.jupiter.api.extension.TestInstantiationAwareExtension
Direct Known Subclasses:
DataSourceBasedDBTestCase, DefaultPrepAndExpectedTestCase, JdbcBasedDBTestCase, JndiBasedDBTestCase

public abstract class DBTestCase extends DatabaseTestCase
Base testCase for database testing.
Subclasses may override newDatabaseTester() to plug-in a different implementation of IDatabaseTester.
Default implementation uses a PropertiesBasedJdbcDatabaseTester.
Since:
2.2.0
Version:
$Revision$ $Date$
Author:
Felipe Leme (dbunit@felipeal.net), Last changed by: $Author$
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.junit.jupiter.api.extension.InvocationInterceptor

    org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T>

    Nested classes/interfaces inherited from interface org.junit.jupiter.api.extension.TestInstantiationAwareExtension

    org.junit.jupiter.api.extension.TestInstantiationAwareExtension.ExtensionContextScope
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a testCase with no name.
    Creates a testCase with the given name.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final IDatabaseConnection
    Returns the test database connection.
    protected IDatabaseTester
    Creates a new IDatabaseTester.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.junit.jupiter.api.extension.InvocationInterceptor

    interceptAfterAllMethod, interceptAfterEachMethod, interceptBeforeAllMethod, interceptBeforeEachMethod, interceptDynamicTest, interceptTestClassConstructor, interceptTestFactoryMethod, interceptTestMethod, interceptTestTemplateMethod

    Methods inherited from interface org.junit.jupiter.api.extension.TestInstantiationAwareExtension

    getTestInstantiationExtensionContextScope