All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dbunit.ExpectedDataSetAndVerifyTableDefinitionVerifier Maven / Gradle / Ivy

Go to download

dbUnit is a JUnit extension (also usable from Ant and Maven) targeted for database-driven projects that, among other things, puts your database into a known state between test runs. This is an excellent way to avoid the myriad of problems that can occur when one test case corrupts the database and causes subsequent tests to fail or exacerbate the damage.

There is a newer version: 2.8.0
Show newest version
package org.dbunit;

import org.dbunit.database.DatabaseConfig;
import org.dbunit.dataset.DataSetException;
import org.dbunit.dataset.IDataSet;

/**
 * Strategy pattern for verifying {@link VerifyTableDefinition}s and
 * expectedDataSet configurations agree, e.g. have the same number of tables
 * defined.
 *
 * @author Jeff Jensen
 */
public interface ExpectedDataSetAndVerifyTableDefinitionVerifier
{
    /**
     * Verify {@link VerifyTableDefinition}s and expectedDataSet configurations
     * agree.
     */
    void verify(VerifyTableDefinition[] verifyTableDefinitions,
            IDataSet expectedDataSet, DatabaseConfig config)
            throws DataSetException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy