Uses of Class
org.dbunit.DatabaseUnitException
Packages that use DatabaseUnitException
Package
Description
-
Uses of DatabaseUnitException in org.dbunit
Methods in org.dbunit that throw DatabaseUnitExceptionModifier and TypeMethodDescriptionstatic voidAssertion.assertEquals(IDataSet expectedDataSet, IDataSet actualDataSet) Asserts that the two specified datasets are equal.static voidAssertion.assertEquals(IDataSet expectedDataSet, IDataSet actualDataSet, FailureHandler failureHandler) Asserts that the two specified datasets are equal.static voidAssertion.assertEquals(ITable expectedTable, ITable actualTable) Asserts that the two specified tables are equal.static voidAssertion.assertEquals(ITable expectedTable, ITable actualTable, FailureHandler failureHandler) Asserts that the two specified tables are equal.static voidAssertion.assertEquals(ITable expectedTable, ITable actualTable, Column[] additionalColumnInfo) Asserts that the two specified tables are equal.static voidAssertion.assertEqualsByQuery(IDataSet expectedDataset, IDatabaseConnection connection, String sqlQuery, String tableName, String[] ignoreCols) Asserts that the specified dataset table matches the given query's result, ignoring the given columns.static voidAssertion.assertEqualsByQuery(ITable expectedTable, IDatabaseConnection connection, String tableName, String sqlQuery, String[] ignoreCols) Asserts that the specified table matches the given query's result, ignoring the given columns.static voidAssertion.assertEqualsIgnoreCols(IDataSet expectedDataset, IDataSet actualDataset, String tableName, String[] ignoreCols) Asserts that the two specified datasets' tables are equal, ignoring the given columns.static voidAssertion.assertEqualsIgnoreCols(ITable expectedTable, ITable actualTable, String[] ignoreCols) Asserts that the two specified tables are equal, ignoring the given columns.static voidAssertion.assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, ValueComparer defaultValueComparer, Map<String, Map<String, ValueComparer>> tableColumnValueComparers) Asserts that the two specified datasets are equal, using the given value comparers.static voidAssertion.assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, FailureHandler failureHandler, ValueComparer defaultValueComparer, Map<String, Map<String, ValueComparer>> tableColumnValueComparers) Asserts that the two specified datasets are equal, using the given value comparers.static voidAssertion.assertWithValueComparer(ITable expectedTable, ITable actualTable, ValueComparer defaultValueComparer, Map<String, ValueComparer> columnValueComparers) Asserts that the two specified tables are equal, using the given value comparers.static voidAssertion.assertWithValueComparer(ITable expectedTable, ITable actualTable, FailureHandler failureHandler, ValueComparer defaultValueComparer, Map<String, ValueComparer> columnValueComparers) Asserts that the two specified tables are equal, using the given value comparers.static voidAssertion.assertWithValueComparer(ITable expectedTable, ITable actualTable, Column[] additionalColumnInfo, ValueComparer defaultValueComparer, Map<String, ValueComparer> columnValueComparers) Asserts that the two specified tables are equal, using the given value comparers.protected voidDefaultPrepAndExpectedTestCase.compareData(ITable expectedTable, ITable actualTable, Column[] additionalColumnInfo, ValueComparer defaultValueComparer, Map<String, ValueComparer> columnValueComparers) Compare the tables, enables easy overriding.protected voidDefaultPrepAndExpectedTestCase.verifyData(ITable expectedTable, ITable actualTable, String[] excludeColumns, String[] includeColumns, ValueComparer defaultValueComparer, Map<String, ValueComparer> columnValueComparers) For the specified expected and actual tables (and excluding and including the specified columns), verify the actual data is as expected.protected voidDefaultPrepAndExpectedTestCase.verifyData(ITable expectedTable, ITable actualTable, String[] excludeColumns, String[] includeColumns, ValueComparer defaultValueComparer, Map<String, ValueComparer> columnValueComparers, boolean sortOnFilteredColumnsOnly) For the specified expected and actual tables (and excluding and including the specified columns), verify the actual data is as expected. -
Uses of DatabaseUnitException in org.dbunit.ant
Methods in org.dbunit.ant that throw DatabaseUnitExceptionModifier and TypeMethodDescriptionvoidDbConfig.copyTo(DatabaseConfig config) Copies the parameters set in this configuration via ant into the givenDatabaseConfigthat is used by the dbunit connection.voidCompare.execute(IDatabaseConnection connection) voidDbUnitTaskStep.execute(IDatabaseConnection connection) Executes this step using the given database connection.voidExport.execute(IDatabaseConnection connection) voidOperation.execute(IDatabaseConnection connection) protected IDataSetAbstractStep.getDatabaseDataSet(IDatabaseConnection connection, List tables) Builds a dataset from the given connection, restricted to the given tables and queries.protected IDataSetExport.getExportDataSet(IDatabaseConnection connection) Creates the dataset that is finally used for the exportprotected IDataSetAbstractStep.getSrcDataSet(File src, String format, boolean forwardonly) Loads a dataset from the given source file in the given format. -
Uses of DatabaseUnitException in org.dbunit.assertion
Methods in org.dbunit.assertion that throw DatabaseUnitExceptionModifier and TypeMethodDescriptionvoidDbUnitAssert.assertEquals(IDataSet expectedDataSet, IDataSet actualDataSet) Asserts that the two specified dataset are equals.voidDbUnitAssert.assertEquals(IDataSet expectedDataSet, IDataSet actualDataSet, FailureHandler failureHandler) Asserts that the two specified dataset are equals.voidDbUnitAssert.assertEquals(ITable expectedTable, ITable actualTable) Asserts that the two specified tables are equals.voidDbUnitAssert.assertEquals(ITable expectedTable, ITable actualTable, FailureHandler failureHandler) Asserts that the two specified tables are equals.voidDbUnitAssert.assertEquals(ITable expectedTable, ITable actualTable, Column[] additionalColumnInfo) Asserts that the two specified tables are equals.voidDbUnitAssert.assertEqualsByQuery(IDataSet expectedDataset, IDatabaseConnection connection, String sqlQuery, String tableName, String[] ignoreCols) Compare a table from a dataset with a table generated from an sql query.voidDbUnitAssert.assertEqualsByQuery(ITable expectedTable, IDatabaseConnection connection, String tableName, String sqlQuery, String[] ignoreCols) Compare a table with a table generated from an sql query.voidDbUnitAssert.assertEqualsIgnoreCols(IDataSet expectedDataset, IDataSet actualDataset, String tableName, String[] ignoreCols) Compare one table present in two datasets ignoring specified columns.voidDbUnitAssert.assertEqualsIgnoreCols(ITable expectedTable, ITable actualTable, String[] ignoreCols) Compare the given tables ignoring specified columns.voidDbUnitAssertBase.assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, FailureHandler failureHandler, ValueComparer defaultValueComparer, Map<String, Map<String, ValueComparer>> tableColumnValueComparers) Asserts the two specifiedIDataSets comparing their columns using the specified columnValueComparers or defaultValueComparer and handles failures using the specified failureHandler.voidDbUnitAssertBase.assertWithValueComparer(ITable expectedTable, ITable actualTable, FailureHandler failureHandler, ValueComparer defaultValueComparer, Map<String, ValueComparer> columnValueComparers) Asserts the two specifiedITables comparing their columns using the specified columnValueComparers or defaultValueComparer and handles failures using the specified failureHandler.voidDbUnitValueComparerAssert.assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet) Asserts the two specifiedIDataSets comparing their columns using the defaultValueComparerand handles failures using the defaultFailureHandler.voidDbUnitValueComparerAssert.assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, ValueComparer defaultValueComparer) Asserts the two specifiedIDataSets comparing their columns using the specified defaultValueComparer and handles failures using the defaultFailureHandler.voidDbUnitValueComparerAssert.assertWithValueComparer(IDataSet expectedDataSet, IDataSet actualDataSet, ValueComparer defaultValueComparer, Map<String, Map<String, ValueComparer>> tableColumnValueComparers) Asserts the two specifiedIDataSets comparing their columns using the specified columnValueComparers or defaultValueComparer and handles failures using the defaultFailureHandler.voidDbUnitValueComparerAssert.assertWithValueComparer(ITable expectedTable, ITable actualTable) Asserts the two specifiedITables comparing their columns using the defaultValueComparerand handles failures using the defaultFailureHandler.voidDbUnitValueComparerAssert.assertWithValueComparer(ITable expectedTable, ITable actualTable, ValueComparer defaultValueComparer) Asserts the two specifiedITables comparing their columns using the specified defaultValueComparer and handles failures using the defaultFailureHandler.voidDbUnitValueComparerAssert.assertWithValueComparer(ITable expectedTable, ITable actualTable, ValueComparer defaultValueComparer, Map<String, ValueComparer> columnValueComparers) Asserts the two specifiedITables comparing their columns using the specified columnValueComparers or defaultValueComparer and handles failures using the defaultFailureHandler.voidDbUnitValueComparerAssert.assertWithValueComparer(ITable expectedTable, ITable actualTable, Column[] additionalColumnInfo, ValueComparer defaultValueComparer, Map<String, ValueComparer> columnValueComparers) Asserts the two specifiedITables comparing their columns using the specified columnValueComparers or defaultValueComparer and handles failures using the defaultFailureHandler, using additionalColumnInfo, if specified.protected voidDbUnitAssertBase.compareData(ITable expectedTable, ITable actualTable, DbUnitAssert.ComparisonColumn[] comparisonCols, FailureHandler failureHandler, ValueComparer defaultValueComparer, Map<String, ValueComparer> columnValueComparers) Compares the data of the two given tables using the given value comparers.protected voidDbUnitAssertBase.compareData(ITable expectedTable, ITable actualTable, DbUnitAssert.ComparisonColumn[] comparisonCols, FailureHandler failureHandler, ValueComparer defaultValueComparer, Map<String, ValueComparer> columnValueComparers, int rowNum, int columnNum) Compares a single expected and actual cell value at the given row and column, failing via the given failure handler on mismatch.protected voidDbUnitAssert.compareTables(IDataSet expectedDataSet, IDataSet actualDataSet, String[] expectedNames, FailureHandler failureHandler) Asserts each expected table against its corresponding actual table, using the default equality-based value comparer.protected voidDbUnitAssertBase.compareTables(IDataSet expectedDataSet, IDataSet actualDataSet, String[] expectedNames, FailureHandler failureHandler, ValueComparer defaultValueComparer, Map<String, Map<String, ValueComparer>> tableColumnValueComparers) Asserts each expected table against its corresponding actual table. -
Uses of DatabaseUnitException in org.dbunit.assertion.comparer.value
Methods in org.dbunit.assertion.comparer.value that throw DatabaseUnitExceptionModifier and TypeMethodDescriptionValueComparer.compare(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) Compare expected and actual values.ValueComparerBase.compare(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) Compare expected and actual values.ConditionalSelectorMultiValueComparer.doCompare(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) ConditionalSetBiValueComparer.doCompare(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected abstract StringValueComparerBase.doCompare(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) Do the comparison and return a fail message or null if comparison passes.protected StringValueComparerTemplateBase.doCompare(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) Do the comparison and return a fail message or null if comparison passes.protected booleanIsActualContainingExpectedStringValueComparer.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected booleanIsActualEqualToExpectedJsonValueComparer.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected booleanIsActualEqualToExpectedValueComparer.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected booleanIsActualEqualToExpectedWithEmptyFailMessageValueComparer.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected booleanIsActualGreaterThanExpectedValueComparer.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected booleanIsActualGreaterThanOrEqualToExpectedValueComparer.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected booleanIsActualLessThanExpectedValueComparer.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected booleanIsActualLessThanOrEqualToExpectedValueComparer.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected booleanIsActualNotEqualToExpectedValueComparer.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected booleanIsActualNotNullValueComparer.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected booleanIsActualNullValueComparer.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected booleanIsActualWithinToleranceOfExpectedTimestampValueComparer.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected booleanNeverFailsValueComparer.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected booleanTimestampIgnoreMillisValueComparerBase.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) protected abstract booleanValueComparerTemplateBase.isExpected(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue) Determines whether the actual value compares as expected against the expected value.protected booleanIsActualEqualToExpectedJsonValueComparer.isJsonEqual(int rowNum, String columnName, Object expectedValue, Object actualValue) Returns whether the expected and actual values parse as structurally equal JSON documents.ValueComparerSelector.select(ITable expectedTable, ITable actualTable, int rowNum, String columnName, DataType dataType, Object expectedValue, Object actualValue, Map<Object, ValueComparer> valueComparers) Selects aValueComparerfrom the given map for the given row and column. -
Uses of DatabaseUnitException in org.dbunit.database
Subclasses of DatabaseUnitException in org.dbunit.databaseModifier and TypeClassDescriptionclassThis exception is thrown byIDataSetwhen multiple tables having the same name are accessible.classSignals that a set of tables has a foreign-key dependency cycle that cannot be resolved into a linear ordering.Methods in org.dbunit.database that throw DatabaseUnitExceptionModifier and TypeMethodDescriptionvoidDatabaseConfig.setPropertiesByString(Properties stringProperties) Sets the given properties on theDatabaseConfiginstance using the given String values.Constructors in org.dbunit.database that throw DatabaseUnitExceptionModifierConstructorDescriptionDatabaseConnection(Connection connection) Creates a newDatabaseConnection.DatabaseConnection(Connection connection, String schema) Creates a newDatabaseConnectionusing a specific schema.DatabaseConnection(Connection connection, String schema, boolean validate) Creates a newDatabaseConnectionusing a specific schema. -
Uses of DatabaseUnitException in org.dbunit.dataset
Subclasses of DatabaseUnitException in org.dbunit.datasetModifier and TypeClassDescriptionclassThrown to indicate that a problem occurred with a dataset.classSignals that a table has no primary key column where one is required.classThrown to indicate that a database column has been accessed that does not exist.classSignals that a dataset does not contain a table with the requested name.classSignals that a requested row index is outside a table's valid range. -
Uses of DatabaseUnitException in org.dbunit.dataset.datatype
Subclasses of DatabaseUnitException in org.dbunit.dataset.datatype -
Uses of DatabaseUnitException in org.dbunit.ext.db2
Constructors in org.dbunit.ext.db2 that throw DatabaseUnitExceptionModifierConstructorDescriptionDb2Connection(Connection connection, String schema) Creates a DB2 connection, pre-configuring the DB2-specific data type factory and metadata handler. -
Uses of DatabaseUnitException in org.dbunit.ext.h2
Constructors in org.dbunit.ext.h2 that throw DatabaseUnitExceptionModifierConstructorDescriptionH2Connection(Connection connection, String schema) Creates an H2 connection, pre-configuring the H2-specific data type factory and metadata handler. -
Uses of DatabaseUnitException in org.dbunit.ext.hsqldb
Constructors in org.dbunit.ext.hsqldb that throw DatabaseUnitExceptionModifierConstructorDescriptionHsqldbConnection(Connection connection, String schema) Creates an HSQLDB connection, pre-configuring the HSQLDB-specific data type factory. -
Uses of DatabaseUnitException in org.dbunit.ext.mckoi
Constructors in org.dbunit.ext.mckoi that throw DatabaseUnitExceptionModifierConstructorDescriptionMckoiConnection(Connection connection, String schema) Creates a newMckoiConnection. -
Uses of DatabaseUnitException in org.dbunit.ext.mssql
Methods in org.dbunit.ext.mssql that throw DatabaseUnitExceptionModifier and TypeMethodDescriptionvoidInsertIdentityOperation.execute(IDatabaseConnection connection, IDataSet dataSet) Constructors in org.dbunit.ext.mssql that throw DatabaseUnitExceptionModifierConstructorDescriptionMsSqlConnection(Connection connection) Creates a newMsSqlConnection.MsSqlConnection(Connection connection, String schema) Creates a newMsSqlConnection. -
Uses of DatabaseUnitException in org.dbunit.ext.mysql
Constructors in org.dbunit.ext.mysql that throw DatabaseUnitExceptionModifierConstructorDescriptionMySqlConnection(Connection connection, String schema) Creates a newMySqlConnection. -
Uses of DatabaseUnitException in org.dbunit.ext.oracle
Constructors in org.dbunit.ext.oracle that throw DatabaseUnitExceptionModifierConstructorDescriptionOracleConnection(Connection connection, String schema) Creates a oracle connection. -
Uses of DatabaseUnitException in org.dbunit.operation
Subclasses of DatabaseUnitException in org.dbunit.operationModifier and TypeClassDescriptionclassSignals that a transaction could not be started because another transaction is already active.Methods in org.dbunit.operation that throw DatabaseUnitExceptionModifier and TypeMethodDescriptionvoidAbstractBatchOperation.execute(IDatabaseConnection connection, IDataSet dataSet) voidCloseConnectionOperation.execute(IDatabaseConnection connection, IDataSet dataSet) voidCompositeOperation.execute(IDatabaseConnection connection, IDataSet dataSet) abstract voidDatabaseOperation.execute(IDatabaseConnection connection, IDataSet dataSet) Executes this operation on the specified database using the specified dataset contents.voidDeleteAllOperation.execute(IDatabaseConnection connection, IDataSet dataSet) voidRefreshOperation.execute(IDatabaseConnection connection, IDataSet dataSet) voidTransactionOperation.execute(IDatabaseConnection connection, IDataSet dataSet) voidTruncateTableOperation.execute(IDatabaseConnection connection, IDataSet dataSet) protected ITableIteratorReturns list of tables this operation is applied to.protected ITableIterator -
Uses of DatabaseUnitException in org.dbunit.util.search
Subclasses of DatabaseUnitException in org.dbunit.util.searchModifier and TypeClassDescriptionclassBase class for exceptions during the search.