Uses of Interface
org.dbunit.assertion.FailureHandler
Packages that use FailureHandler
-
Uses of FailureHandler in org.dbunit
Methods in org.dbunit that return FailureHandlerModifier and TypeMethodDescriptionDefaultPrepAndExpectedTestCase.getFailureHandler()Get the failureHandler.Methods in org.dbunit with parameters of type FailureHandlerModifier and TypeMethodDescriptionstatic voidAssertion.assertEquals(IDataSet expectedDataSet, IDataSet actualDataSet, FailureHandler failureHandler) Asserts that the two specified datasets are equal.static voidAssertion.assertEquals(ITable expectedTable, ITable actualTable, FailureHandler failureHandler) Asserts that the two specified tables are equal.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, FailureHandler failureHandler, ValueComparer defaultValueComparer, Map<String, ValueComparer> columnValueComparers) Asserts that the two specified tables are equal, using the given value comparers.voidDefaultPrepAndExpectedTestCase.setFailureHandler(FailureHandler failureHandler) Set the failureHandler. -
Uses of FailureHandler in org.dbunit.assertion
Classes in org.dbunit.assertion that implement FailureHandlerModifier and TypeClassDescriptionclassDefault implementation of theFailureHandler.classAFailureHandlerthat collects theDifferences that were found without throwing an exception.Methods in org.dbunit.assertion that return FailureHandlerModifier and TypeMethodDescriptionprotected FailureHandlerDbUnitAssertBase.determineFailureHandler(FailureHandler failureHandler) Returns the given failure handler, or the default one if the given handler isnull.protected FailureHandlerDbUnitAssertBase.getDefaultFailureHandler()Returns the default failure handler, without additional column info.protected FailureHandlerDbUnitAssertBase.getDefaultFailureHandler(Column[] additionalColumnInfo) Returns the default failure handler, reporting the given additional columns on failure.Methods in org.dbunit.assertion with parameters of type FailureHandlerModifier and TypeMethodDescriptionvoidDbUnitAssert.assertEquals(IDataSet expectedDataSet, IDataSet actualDataSet, FailureHandler failureHandler) Asserts that the two specified dataset are equals.voidDbUnitAssert.assertEquals(ITable expectedTable, ITable actualTable, FailureHandler failureHandler) Asserts that the two specified tables are equals.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.protected voidDbUnitAssertBase.compareColumns(Column[] expectedColumns, Column[] actualColumns, ITableMetaData expectedMetaData, ITableMetaData actualMetaData, FailureHandler failureHandler) Compares the columns of the two given tables, failing via the given failure handler on mismatch.protected voidDbUnitAssertBase.compareData(ITable expectedTable, ITable actualTable, DbUnitAssert.ComparisonColumn[] comparisonCols, FailureHandler failureHandler) Compares the data of the two given tables using the default value comparers.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 booleanDbUnitAssertBase.compareRowCounts(ITable expectedTable, ITable actualTable, FailureHandler failureHandler, String expectedTableName) Compares the row counts of the two given tables, failing via the given failure handler on mismatch.protected voidDbUnitAssertBase.compareTableCounts(String[] expectedNames, String[] actualNames, FailureHandler failureHandler) Compares the number of expected and actual table names, failing via the given failure handler on mismatch.protected voidDbUnitAssertBase.compareTableNames(String[] expectedNames, String[] actualNames, FailureHandler failureHandler) Compares the expected and actual table names, 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.protected FailureHandlerDbUnitAssertBase.determineFailureHandler(FailureHandler failureHandler) Returns the given failure handler, or the default one if the given handler isnull.protected voidDbUnitAssertBase.failIfNecessary(ITable expectedTable, ITable actualTable, FailureHandler failureHandler, int rowNum, String columnName, Object expectedValue, Object actualValue, String failMessage) Reports a failure to the given failure handler if the given fail message is notnull.protected DbUnitAssert.ComparisonColumn[]DbUnitAssertBase.getComparisonColumns(String expectedTableName, Column[] expectedColumns, Column[] actualColumns, FailureHandler failureHandler) Builds the comparison columns to use for the assertion, pairing each expected column with its actual counterpart and resolving the correct datatype.Constructors in org.dbunit.assertion with parameters of type FailureHandlerModifierConstructorDescriptionComparisonColumn(String tableName, Column expectedColumn, Column actualColumn, FailureHandler failureHandler) Creates a comparison column, resolving theDataTypeto use for comparison.SimpleAssert(FailureHandler failureHandler) Constructs aSimpleAssertreporting failures through the given handler.