Uses of Interface
org.dbunit.dataset.ITable
Packages that use ITable
Package
Description
-
Uses of ITable in org.dbunit
Methods in org.dbunit that return ITableModifier and TypeMethodDescriptionDefaultPrepAndExpectedTestCase.applyColumnFilters(ITable table, String[] excludeColumns, String[] includeColumns) Apply the specified exclude and include column filters to the specified table.DefaultPrepAndExpectedTestCase.loadTableDataFromDatabase(String tableName, IDatabaseConnection connection) Loads the given table's actual data from the database.DefaultPrepAndExpectedTestCase.loadTableDataFromDataSet(String tableName) Loads the given table's expected data from the expected dataset.Methods in org.dbunit with parameters of type ITableModifier and TypeMethodDescriptionDefaultPrepAndExpectedTestCase.applyColumnFilters(ITable table, String[] excludeColumns, String[] includeColumns) Apply the specified exclude and include column filters to the specified table.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(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(ITable expectedTable, ITable actualTable, String[] ignoreCols) Asserts that the two specified tables are equal, ignoring the given columns.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 Column[]DefaultPrepAndExpectedTestCase.makeAdditionalColumnInfo(ITable expectedTable, String[] excludeColumns) Don't add excluded columns to additionalColumnInfo as they are not found and generate a not found message in the fail message.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 ITable in org.dbunit.assertion
Methods in org.dbunit.assertion that return ITableModifier and TypeMethodDescriptionDifference.getActualTable()Returns the table containing the actual results.Difference.getExpectedTable()Returns the table containing the expected results.Methods in org.dbunit.assertion with parameters of type ITableModifier and TypeMethodDescriptionvoidDbUnitAssert.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(ITable expectedTable, IDatabaseConnection connection, String tableName, String sqlQuery, String[] ignoreCols) Compare a table with a table generated from an sql query.voidDbUnitAssert.assertEqualsIgnoreCols(ITable expectedTable, ITable actualTable, String[] ignoreCols) Compare the given tables ignoring specified columns.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(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) 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.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.DefaultFailureHandler.getAdditionalInfo(ITable expectedTable, ITable actualTable, int row, String columnName) FailureHandler.getAdditionalInfo(ITable expectedTable, ITable actualTable, int row, String columnName) Returns a string to be appended to the assertion failure message.protected ObjectDefaultFailureHandler.getColumnValue(ITable table, int rowIndex, String columnName) Returns the value of the given column, resolving through aColumnFilterTablewrapper if needed.Constructors in org.dbunit.assertion with parameters of type ITableModifierConstructorDescriptionDifference(ITable expectedTable, ITable actualTable, int rowIndex, String columnName, Object expectedValue, Object actualValue) Creates a difference with no fail message.Difference(ITable expectedTable, ITable actualTable, int rowIndex, String columnName, Object expectedValue, Object actualValue, String failMessage) Creates a difference with the given fail message. -
Uses of ITable in org.dbunit.assertion.comparer.value
Methods in org.dbunit.assertion.comparer.value with parameters of type ITableModifier 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 booleanConditionalSetBiValueComparer.isActualValueInValues(ITable actualTable, int rowNum) Returns whether the value derived from the given row of the actual table is present inConditionalSetBiValueComparer.values.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.Make the instance from the row in the table.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 ITable in org.dbunit.database
Subinterfaces of ITable in org.dbunit.databaseModifier and TypeInterfaceDescriptioninterfaceAnITablebacked by a JDBC result set that must be closed after use.Classes in org.dbunit.database that implement ITableModifier and TypeClassDescriptionclassclassIResultSetTablethat eagerly loads and caches an entireResultSetin memory.classIResultSetTableimplementation backed by a forward-only, non-cachedResultSet.classThis class is a wrapper for another table with the condition that only a subset of the original table will be available - the subset is defined by the set of primary keys that are allowed in the new table.classIResultSetTableimplementation backed by a scrollableResultSetcursor.Methods in org.dbunit.database that return ITableModifier and TypeMethodDescriptionAbstractDatabaseConnection.createQueryTable(String resultName, String sql) IDatabaseConnection.createQueryTable(String tableName, String sql) Creates a table with the result of the specified SQL statement.AbstractDatabaseConnection.createTable(String tableName) AbstractDatabaseConnection.createTable(String resultName, PreparedStatement preparedStatement) IDatabaseConnection.createTable(String tableName) Creates a table with the result of aselect * from tableNameSQL statement.IDatabaseConnection.createTable(String tableName, PreparedStatement preparedStatement) Creates a table using the given PreparedStatement to retrieve a ResultSet.DatabaseTableIterator.getTable()QueryTableIterator.getTable()Returns the current table.Constructors in org.dbunit.database with parameters of type ITableModifierConstructorDescriptionPrimaryKeyFilteredTableWrapper(ITable table, Set allowedPKs) Creates a PKFilteredTable given an original table and the allowed primary keys for that table. -
Uses of ITable in org.dbunit.dataset
Classes in org.dbunit.dataset that implement ITableModifier and TypeClassDescriptionclassAbstract base implementation ofITable, providing common column-lookup and value-formatting behavior for concrete table implementations.classITableimplementation that fully loads and caches another table's rows and metadata in memory.classDeprecated.All IDataSet implementations are case insensitive since DbUnit 1.5classA table that filters some columns out from the original table.classITablethat pairs explicitITableMetaDatawith row data drawn from one or more other tables.classDefault table implementation backed by a simple java in-memory list.classITabledecorator that wraps another table and enforces forward-only, non-counted row access.classDecorator that replaces configured values from the decorated table with replacement values.classFilters table rows by using arbitrary column values of the table to check if a row should be filtered or not.classThis is a ITable decorator that provide a sorted view of the decorated table.Methods in org.dbunit.dataset that return ITableModifier and TypeMethodDescriptionApplies this function to the given table.Deprecated.DefaultTableIterator.getTable()Returns the specified table.ITableIterator.getTable()Returns the current table.ITable[]AbstractDataSet.getTables()static ITable[]Search and returns the specified tables from the specified dataSet.static ITable[]Returns the tables from the specified dataset.static ITable[]DataSetUtils.getTables(ITableIterator iterator) Returns the tables from the specified iterator.ITable[]IDataSet.getTables()Deprecated.UseIDataSet.iterator()orIDataSet.reverseIterator()instead.Methods in org.dbunit.dataset with parameters of type ITableModifier and TypeMethodDescriptionvoidAdd a new table in this dataset.voidDefaultTable.addTableRows(ITable table) Inserts all rows from the specified table.Applies this function to the given table.static voidDataSetUtils.assertEquals(ITable expectedTable, ITable actualTable) Deprecated.Use Assertion.assertEqualsConstructors in org.dbunit.dataset with parameters of type ITableModifierConstructorDescriptionAbstractRowComparator(ITable table, Column[] sortColumns) Constructs a comparator sorting rows of the given table by the given columns.CachedTable(ITable table) Creates a table that eagerly loads and caches all rows of the given table.CaseInsensitiveTable(ITable table) Deprecated.Creates a case-insensitive view of the given table.ColumnFilterTable(ITable table, IColumnFilter columnFilter) Creates a table that filters some columns out from the given table.CompositeDataSet(ITable[] tables) Creates a composite dataset that combines tables having identical name.CompositeDataSet(ITable[] tables, boolean caseSensitiveTableNames) Creates a composite dataset that combines tables having identical name.CompositeTable(String newName, ITable table) Creates a composite dataset that encapsulate the specified table with a new name.CompositeTable(ITableMetaData metaData, ITable table) Creates a composite table that combines the specified metadata with the specified table.CompositeTable(ITableMetaData metaData, ITable[] tables) Creates a composite table that combines the specified metadata with the specified tables.CompositeTable(ITable table1, ITable table2) Creates a composite table that combines the specified specified tables.DefaultDataSet(ITable table) Creates a default dataset consisting of the given table.DefaultDataSet(ITable[] tables) Creates a default dataset consisting of the given tables.DefaultDataSet(ITable[] tables, boolean caseSensitiveTableNames) Creates a default dataset which consists of the given tablesDefaultDataSet(ITable table1, ITable table2) Creates a default dataset consisting of the given tables.DefaultTableIterator(ITable[] tables) Creates an iterator over the given tables, in their given order.DefaultTableIterator(ITable[] tables, boolean reversed) Creates an iterator over the given tables, optionally in reverse order.ForwardOnlyTable(ITable table) Creates a forward-only decorator over the given table.LowerCaseDataSet(ITable table) Creates a dataset that lower-cases the table and column names of the given table.LowerCaseDataSet(ITable[] tables) Creates a dataset that lower-cases the table and column names of the given tables.ReplacementTable(ITable table) Create a new ReplacementTable object that decorates the specified table.ReplacementTable(ITable table, Map objectMap, Map substringMap, String startDelimiter, String endDelimiter) Create a new ReplacementTable object that decorates the specified table.RowComparator(ITable table, Column[] sortColumns) Constructs a comparator sorting rows of the given table by the given columns, using each column's Comparable implementation.RowComparatorByString(ITable table, Column[] sortColumns) Constructs a comparator sorting rows of the given table by the given columns, using each column's string value.RowFilterTable(ITable table, IRowFilter rowFilter) Creates a newITablewhere some rows can be filtered out from the original tableSortedTable(ITable table) Sort the decorated table by its own columns order which is defined bygetTableMetaData().SortedTable(ITable table, String[] columnNames) Sort the decorated table by specified columns order.SortedTable(ITable table, Column[] columns) Sort the decorated table by specified columns order.SortedTable(ITable table, Column[] columns, boolean useSpecifiedColumns) Sort the decorated table by specified columns order.SortedTable(ITable table, ITableMetaData metaData) Sort the decorated table by specified metadata columns order. -
Uses of ITable in org.dbunit.dataset.filter
Methods in org.dbunit.dataset.filter that return ITableModifier and TypeMethodDescriptionstatic ITableDefaultColumnFilter.excludedColumnsTable(ITable table, String[] columnNames) Returns a table backed by the specified table but with specified columns excluded.static ITableDefaultColumnFilter.excludedColumnsTable(ITable table, Column[] columns) Returns a table backed by the specified table but with specified columns excluded.SequenceTableIterator.getTable()static ITableDefaultColumnFilter.includedColumnsTable(ITable table, String[] columnNames) Returns a table backed by the specified table that only exposes specified columns.static ITableDefaultColumnFilter.includedColumnsTable(ITable table, Column[] columns) Returns a table backed by the specified table that only exposes specified columns.Methods in org.dbunit.dataset.filter with parameters of type ITableModifier and TypeMethodDescriptionstatic ITableDefaultColumnFilter.excludedColumnsTable(ITable table, String[] columnNames) Returns a table backed by the specified table but with specified columns excluded.static ITableDefaultColumnFilter.excludedColumnsTable(ITable table, Column[] columns) Returns a table backed by the specified table but with specified columns excluded.static ITableDefaultColumnFilter.includedColumnsTable(ITable table, String[] columnNames) Returns a table backed by the specified table that only exposes specified columns.static ITableDefaultColumnFilter.includedColumnsTable(ITable table, Column[] columns) Returns a table backed by the specified table that only exposes specified columns. -
Uses of ITable in org.dbunit.dataset.stream
Methods in org.dbunit.dataset.stream that return ITable -
Uses of ITable in org.dbunit.dataset.xml
Methods in org.dbunit.dataset.xml that return ITable -
Uses of ITable in org.dbunit.operation
Methods in org.dbunit.operation with parameters of type ITableModifier and TypeMethodDescriptionprotected booleanInsertOperation.equalsIgnoreMapping(BitSet ignoreMapping, ITable table, int row) protected BitSetInsertOperation.getIgnoreMapping(ITable table, int row) -
Uses of ITable in org.dbunit.util
Methods in org.dbunit.util with parameters of type ITable