- addColumn(Column) - Method in class org.unitils.dbunit.dataset.Row
-
Adds a column to the row.
- addColumn(Column) - Method in class org.unitils.dbunit.dataset.Table
-
- addColumn(Column) - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitTable
-
- addColumn(Column) - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitTableMetaData
-
- addColumnDifference(ColumnDifference) - Method in class org.unitils.dbunit.dataset.comparison.RowDifference
-
Adds a difference for a column
- addColumns(Column[]) - Method in class org.unitils.dbunit.dataset.Table
-
- addMissingColumn(Column) - Method in class org.unitils.dbunit.dataset.comparison.RowDifference
-
Adds a column that was not found in the actual row
- addMissingRow(Row) - Method in class org.unitils.dbunit.dataset.comparison.TableDifference
-
Adds a rows for which no other row was found in the actual table.
- addMissingTable(Table) - Method in class org.unitils.dbunit.dataset.comparison.SchemaDifference
-
Adds a table that was not found in the actual schema
- addPrimaryKeyColumn(Column) - Method in class org.unitils.dbunit.dataset.Row
-
Adds a column to the row.
- addRow(Row) - Method in class org.unitils.dbunit.dataset.Table
-
Adds a data set row
- addRow(List<?>) - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitTable
-
- addRow(Attributes, DbUnitTable) - Method in class org.unitils.dbunit.util.MultiSchemaXmlDataSetReader.DataSetContentHandler
-
Gets column names and row values from the given attribute and adds a new row to the given table.
- addRows(ITable, Table, List<String>) - Method in class org.unitils.dbunit.dataset.SchemaFactory
-
Adds the rows of the DbUnit table to the given table.
- addTable(Table) - Method in class org.unitils.dbunit.dataset.Schema
-
Adds a table to the schema.
- addTable(DbUnitTable) - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitDataSet
-
- addTableDifference(TableDifference) - Method in class org.unitils.dbunit.dataset.comparison.SchemaDifference
-
Adds a result of a table comparison
- addTables(IDataSet, Schema) - Method in class org.unitils.dbunit.dataset.SchemaFactory
-
Adds the tables of the DbUnit dataset to the given schema.
- afterInit() - Method in class org.unitils.dbunit.DbUnitModule
-
No after initialization needed for this module
- afterTestMethod(Object, Method, Throwable) - Method in class org.unitils.dbunit.DbUnitModule.DbUnitListener
-
- appendBestRowDifferences(TableDifference, StringBuilder) - Method in class org.unitils.dbunit.util.DataSetAssert
-
Appends the best matching row differences of the given table difference to the result
- appendColumnNames(Row, StringBuilder) - Method in class org.unitils.dbunit.util.DataSetAssert
-
Appends the column names of the given row to the result
- appendMissingRowDifferences(TableDifference, StringBuilder) - Method in class org.unitils.dbunit.util.DataSetAssert
-
Appends the missing rows of the given table difference to the result
- appendMissingTableDifferences(SchemaDifference, StringBuilder) - Method in class org.unitils.dbunit.util.DataSetAssert
-
Appends the missing tables of the given schema difference to the result
- appendRow(Row, StringBuilder) - Method in class org.unitils.dbunit.util.DataSetAssert
-
Appends the values of the given row to the result
- appendSchemaContent(Schema, Schema, StringBuilder) - Method in class org.unitils.dbunit.util.DataSetAssert
-
Appends all rows and tables of the actual schema to the result.
- appendTableDifferences(SchemaDifference, StringBuilder) - Method in class org.unitils.dbunit.util.DataSetAssert
-
Appends the table differences of the given schema difference to the result
- appendTableName(Schema, Table, StringBuilder) - Method in class org.unitils.dbunit.util.DataSetAssert
-
Appends the schema and table name to the result
- assertDbContentAsExpected(Method, Object) - Method in class org.unitils.dbunit.DbUnitModule
-
Compares the contents of the expected DbUnitDataSet with the contents of the database.
- assertEqualDbUnitDataSets(String, IDataSet, IDataSet) - Method in class org.unitils.dbunit.util.DataSetAssert
-
Asserts that the given expected DbUnit data set is equal to the actual DbUnit data set.
- assertEqualSchemas(Schema, Schema) - Method in class org.unitils.dbunit.util.DataSetAssert
-
Asserts that the given expected schema is equal to the actual schema.
- assertExpectedDataSet(File...) - Static method in class org.unitils.dbunit.DbUnitUnitils
-
- assertExpectedDataSet(String...) - Static method in class org.unitils.dbunit.DbUnitUnitils
-
- assertExpectedDataSets(ExpectedDataSet, Object, Method) - Method in class org.unitils.dbunit.DbUnitModule
-
- assertExpectedDataSets(MultiSchemaDataSet, Object) - Method in class org.unitils.dbunit.DbUnitModule
-
- assertMultipleExpectedDataSets(ExpectedDataSets, Object, Method) - Method in class org.unitils.dbunit.DbUnitModule
-
- CleanInsertLoadStrategy - Class in org.unitils.dbunit.datasetloadstrategy.impl
-
DataSetLoadStrategy that inserts a dataset, after removal of all data present in the tables specified in the dataset.
- CleanInsertLoadStrategy() - Constructor for class org.unitils.dbunit.datasetloadstrategy.impl.CleanInsertLoadStrategy
-
- close() - Method in class org.unitils.dbunit.util.DbUnitDatabaseConnection
-
Method that is invoked by DBUnit when the connection is no longer needed.
- closeJdbcConnection() - Method in class org.unitils.dbunit.DbUnitModule
-
Closes (i.e. return to the pool) the JDBC Connection that is currently in use by the DbUnitDatabaseConnection
- closeJdbcConnection() - Method in class org.unitils.dbunit.util.DbUnitDatabaseConnection
-
- Column - Class in org.unitils.dbunit.dataset
-
A column in a data set row
- Column(String, DataType, Object) - Constructor for class org.unitils.dbunit.dataset.Column
-
Creates a value
- ColumnDifference - Class in org.unitils.dbunit.dataset.comparison
-
The difference between 2 column values.
- ColumnDifference(Column, Column) - Constructor for class org.unitils.dbunit.dataset.comparison.ColumnDifference
-
Creates a column difference.
- columnNames - Variable in class org.unitils.dbunit.datasetfactory.impl.DbUnitTableMetaData
-
- columns - Variable in class org.unitils.dbunit.datasetfactory.impl.DbUnitTableMetaData
-
- compare(Column) - Method in class org.unitils.dbunit.dataset.Column
-
Compares the column with the given actual column.
- compare(Row) - Method in class org.unitils.dbunit.dataset.Row
-
Compares the row with the given actual row.
- compare(Schema) - Method in class org.unitils.dbunit.dataset.Schema
-
Compares the schema with the given actual schema.
- compare(Table) - Method in class org.unitils.dbunit.dataset.Table
-
Compares the table with the given actual table.
- compareColumns(List<Column>, Row, RowDifference) - Method in class org.unitils.dbunit.dataset.Row
-
Compares the given columns with the columns of the actual row.
- compareRows(List<Row>, Table, TableDifference) - Method in class org.unitils.dbunit.dataset.Table
-
Compares the given rows with the columns of the actual table.
- configuration - Variable in class org.unitils.dbunit.DbUnitModule
-
The unitils configuration
- createDataSet(File...) - Method in interface org.unitils.dbunit.datasetfactory.DataSetFactory
-
- createDataSet(File...) - Method in class org.unitils.dbunit.datasetfactory.impl.MultiSchemaXmlDataSetFactory
-
- createDataSet(InputStream...) - Method in class org.unitils.dbunit.datasetfactory.impl.ResourceMultiSchemaXmlDataSetFactory
-
- createDataSet(File...) - Method in class org.unitils.dbunit.datasetfactory.impl.ResourceMultiSchemaXmlDataSetFactory
-
The dataSetFiles are converted into inputstreams and than the
MultiSchemaDataSet is created.
- createDataSetFileNamesHandler() - Method in class org.unitils.dbunit.DbUnitModule
-
- createDbUnitConnection(String) - Method in class org.unitils.dbunit.DbUnitModule
-
Creates a new instance of dbUnit's IDatabaseConnection
- createIterator(boolean) - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitDataSet
-
- createSchemaForDbUnitDataSet(String, IDataSet) - Method in class org.unitils.dbunit.dataset.SchemaFactory
-
Creates a data set schema for the given DbUnit dataset.
- createSchemaForDbUnitDataSet(String, IDataSet, List<String>) - Method in class org.unitils.dbunit.dataset.SchemaFactory
-
Creates a data set schema for the given DbUnit dataset.
- createTempFile(String) - Method in class org.unitils.dbunit.util.FileHandler
-
Create temporary files to store the XML.
- createXMLReader() - Method in class org.unitils.dbunit.util.MultiSchemaXmlDataSetReader
-
Factory method for creating the SAX xml reader.
- databaseName - Variable in class org.unitils.dbunit.DbUnitModule
-
- DataSet - Annotation Type in org.unitils.dbunit.annotation
-
Annotation indicating that a data set should be loaded before the test run.
- DataSetAssert - Class in org.unitils.dbunit.util
-
Assert class that offers assert methods for testing things that are specific to DbUnit.
- DataSetAssert() - Constructor for class org.unitils.dbunit.util.DataSetAssert
-
- DataSetFactory - Interface in org.unitils.dbunit.datasetfactory
-
Factory for creating DbUnit data sets.
- DataSetFileNamesHandler - Class in org.unitils.dbunit.util
-
Utils class to generate the correct names for the datasets.
- DataSetFileNamesHandler() - Constructor for class org.unitils.dbunit.util.DataSetFileNamesHandler
-
- DataSetLoadStrategy - Interface in org.unitils.dbunit.datasetloadstrategy
-
Defines the contract for implementations that specify an operation that needs to be executed on the database, given
a DbUnit dataset.
- DataSetResolver - Interface in org.unitils.dbunit.datasetfactory
-
Resolves the location for a data set with a certain name.
- DataSets - Annotation Type in org.unitils.dbunit.annotation
-
- DbUnitDatabaseConnection - Class in org.unitils.dbunit.util
-
Implementation of DBUnits IDatabaseConnection interface.
- DbUnitDatabaseConnection(DataSource, String) - Constructor for class org.unitils.dbunit.util.DbUnitDatabaseConnection
-
Creates a new instance that wraps the given DataSource
- dbUnitDatabaseConnections - Variable in class org.unitils.dbunit.DbUnitModule
-
Objects that D513
bUnit uses to connect to the database and to cache some database metadata.
- DbUnitDataSet - Class in org.unitils.dbunit.datasetfactory.impl
-
- DbUnitDataSet() - Constructor for class org.unitils.dbunit.datasetfactory.impl.DbUnitDataSet
-
- dbUnitDataSetsPerSchemaName - Variable in class org.unitils.dbunit.util.MultiSchemaXmlDataSetReader.DataSetContentHandler
-
- DbUnitModule - Class in org.unitils.dbunit
-
Module that provides support for managing database test data using DBUnit.
- DbUnitModule() - Constructor for class org.unitils.dbunit.DbUnitModule
-
- DbUnitModule.DbUnitListener - Class in org.unitils.dbunit
-
Test listener that is called while the test framework is running tests
- DbUnitModule.DbUnitListener() - Constructor for class org.unitils.dbunit.DbUnitModule.DbUnitListener
-
- DbUnitTable - Class in org.unitils.dbunit.datasetfactory.impl
-
- DbUnitTable(String) - Constructor for class org.unitils.dbunit.datasetfactory.impl.DbUnitTable
-
- DbUnitTableMetaData - Class in org.unitils.dbunit.datasetfactory.impl
-
- DbUnitTableMetaData(String) - Constructor for class org.unitils.dbunit.datasetfactory.impl.DbUnitTableMetaData
-
- DbUnitUnitils - Class in org.unitils.dbunit
-
Class providing access to the functionality of the dbunit module using static methods.
- DbUnitUnitils() - Constructor for class org.unitils.dbunit.DbUnitUnitils
-
- defaultAnnotationPropertyValues - Variable in class org.unitils.dbunit.DbUnitModule
-
Map holding the default configuration of the dbunit module annotations
- DefaultDataSetResolver - Class in org.unitils.dbunit.datasetfactory.impl
-
Resolves the location for a data set with a certain name.
- DefaultDataSetResolver() - Constructor for class org.unitils.dbunit.datasetfactory.impl.DefaultDataSetResolver
-
- defaultSchemaName - Variable in class org.unitils.dbunit.datasetfactory.impl.MultiSchemaXmlDataSetFactory
-
The schema name to use when no name was explicitly specified.
- defaultSchemaName - Variable in class org.unitils.dbunit.util.MultiSchemaXmlDataSetReader.DataSetContentHandler
-
- deleteFiles(List<File>) - Method in class org.unitils.dbunit.util.FileHandler
-
Delete all the files
- disableValidation(SAXParserFactory) - Method in class org.unitils.dbunit.util.MultiSchemaXmlDataSetReader
-
Disables validation on the given sax parser factory.
- doExecute(DbUnitDatabaseConnection, IDataSet) - Method in class org.unitils.dbunit.datasetloadstrategy.impl.BaseDataSetLoadStrategy
-
Executes this DataSetLoadStrategy.
- doExecute(DbUnitDatabaseConnection, IDataSet) - Method in class org.unitils.dbunit.datasetloadstrategy.impl.CleanInsertLoadStrategy
-
Executes this DataSetLoadStrategy.
- doExecute(DbUnitDatabaseConnection, IDataSet) - Method in class org.unitils.dbunit.datasetloadstrategy.impl.InsertLoadStrategy
-
Executes this DataSetLoadStrategy.
- doExecute(DbUnitDatabaseConnection, IDataSet) - Method in class org.unitils.dbunit.datasetloadstrategy.impl.RefreshLoadStrategy
-
Executes this DataSetLoadStrategy.
- doExecute(DbUnitDatabaseConnection, IDataSet) - Method in class org.unitils.dbunit.datasetloadstrategy.impl.UpdateLoadStrategy
-
- generateErrorMessage(SchemaDifference) - Method in class org.unitils.dbunit.util.DataSetAssert
-
Formats the assertion failed message for the given difference.
- generateResourceName(String, Package) - Method in class org.unitils.dbunit.util.DataSetFileNamesHandler
-
- getActualColumn() - Method in class org.unitils.dbunit.dataset.comparison.ColumnDifference
-
- getActualDataSet(String) - Method in class org.unitils.dbunit.DbUnitModule
-
Gets the actual data set for the given schema.
- getActualRow() - Method in class org.unitils.dbunit.dataset.comparison.RowDifference
-
- getActualSchema() - Method in class org.unitils.dbunit.dataset.comparison.SchemaDifference
-
- getActualTable() - Method in class org.unitils.dbunit.dataset.comparison.TableDifference
-
- getBestRowDifference(Row) - Method in class org.unitils.dbunit.dataset.comparison.TableDifference
-
- getBestRowDifferences() - Method in class org.unitils.dbunit.dataset.comparison.TableDifference
-
- getCastedValue(DataType) - Method in class org.unitils.dbunit.dataset.Column
-
Gets the value casted to the given type.
- getColumn() - Method in class org.unitils.dbunit.dataset.comparison.ColumnDifference
-
- getColumn(String) - Method in class org.unitils.dbunit.dataset.Row
-
Gets the column for the given name.
- getColumnDifference(String) - Method in class org.unitils.dbunit.dataset.comparison.RowDifference
-
- getColumnDifferences() - Method in class org.unitils.dbunit.dataset.comparison.RowDifference
-
- getColumnNames() - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitTable
-
- getColumnNames() - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitTableMetaData
-
- getColumns() - Method in class org.unitils.dbunit.dataset.Row
-
- getColumns() - Method in class org.unitils.dbunit.dataset.Table
-
- getColumns() - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitTableMetaData
-
- getConnection() - Method in class org.unitils.dbunit.util.DbUnitDatabaseConnection
-
Returns a Connection that can be used by DBUnit.
- getDatabaseModule() - Method in class org.unitils.dbunit.DbUnitModule
-
- getDataSet(DataSet, Method, Class<?>) - Method in class org.unitils.dbunit.DbUnitModule
-
Using the values of the method-level or class-level
DataSet annotations, returns the data set for the given test method.
- getDataSet(Class<?>, String[], DataSetFactory) - Method in class org.unitils.dbunit.DbUnitModule
-
Creates the dataset for the given file.
- getDataSetFactory(Class<? extends Annotation>, Method, Class<?>) - Method in class org.unitils.dbunit.DbUnitModule
-
Get the configured DataSetFactory for the given method
- getDataSetFactory(Class<? extends DataSetFactory>) - Method in class org.unitils.dbunit.DbUnitModule
-
Creates and initializes a data set factory of the given type.
- getDataSetFileExtension() - Method in interface org.unitils.dbunit.datasetfactory.DataSetFactory
-
- getDataSetFileExtension() - Method in class org.unitils.dbunit.datasetfactory.impl.MultiSchemaXmlDataSetFactory
-
- getDataSetForSchema(String) - Method in class org.unitils.dbunit.util.MultiSchemaDataSet
-
Returns the dbunit IDataSet for the given schema name, if any
- getDataSetLoadStrategy(Method, Class<?>, DataSet) - Method in class org.unitils.dbunit.DbUnitModule
-
Creates the DbUnit dataset operation for loading a data set for the given method.
- getDataSetResolver() - Method in class org.unitils.dbunit.DbUnitModule
-
- getDataSetResolver() - Method in class org.unitils.dbunit.util.DataSetFileNamesHandler
-
- getDataSetsSorted(DataSets) - Method in class org.unitils.dbunit.DbUnitModule
-
- getDbUnitDatabaseConnection(String) - Method in class org.unitils.dbunit.DbUnitModule
-
Gets the DbUnit connection or creates one if it does not exist yet.
- getDbUnitTable(String) - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitDataSet
-
- getDefaultDatabaseMetaHandler() - Method in class org.unitils.dbunit.DbUnitModule
-
- getDefaultDatasetBasedOnFilename(Class<?>, Method, String) - Method in class org.unitils.dbunit.util.DataSetFileNamesHandler
-
- getDefaultDataSetFactory() - Method in class org.unitils.dbunit.DbUnitModule
-
- getDefaultDataSetFileNameClassLevel(Class<?>, String) - Method in class org.unitils.dbunit.util.DataSetFileNamesHandler
-
Gets the name of the default testdata file at class level The default name is constructed as follows: 'classname without
packagename'.xml
- getDefaultDataSetFileNameMethodLevel(Class<?>, Method, String) - Method in class org.unitils.dbunit.util.DataSetFileNamesHandler
-
Gets the name of the default testdata file at class level The default name is constructed as follows: 'classname without
packagename'-"testmethod".xml
- getDefaultDataSetLoadStrategy() - Method in class org.unitils.dbunit.DbUnitModule
-
- getDefaultDbSupport() - Method in class org.unitils.dbunit.DbUnitModule
-
- getDefaultExpectedDataSetFileName(Method, Class<?>, String) - Method in class org.unitils.dbunit.util.DataSetFileNamesHandler
-
Gets the name of the expected dataset file.
- getDefaultSchemaName() - Method in class org.unitils.dbunit.util.MultiSchemaXmlDataSetReaderExtend
-
- getExpectedDataSet(ExpectedDataSet, Method, Object) - Method in class org.unitils.dbunit.DbUnitModule
-
Returns the
MultiSchemaDataSet that represents the state of a number of database tables after the given
Method
has been executed.
- getFileHandler() - Method in class org.unitils.dbunit.DbUnitModule
-
- getFileHandler() - Method in class org.unitils.dbunit.util.DataSetFileNamesHandler
-
- getMissingColumns() - Method in class org.unitils.dbunit.dataset.comparison.RowDifference
-
- getMissingRows() - Method in class org.unitils.dbunit.dataset.comparison.TableDifference
-
- getMissingTables() - Method in class org.unitils.dbunit.dataset.comparison.SchemaDifference
-
- getMultiSchemaDataSet() - Method in class org.unitils.dbunit.util.MultiSchemaXmlDataSetReader.DataSetContentHandler
-
Gets the result data set.
- getName() - Method in class org.unitils.dbunit.dataset.Column
-
- getName() - Method in class org.unitils.dbunit.dataset.Schema
-
- getName() - Method in class org.unitils.dbunit.dataset.Table
-
- getNativeConnection(Connection) - Method in class org.unitils.dbunit.util.DbUnitDatabaseConnection
-
- getPrimaryKeyColumnNames(ITable) - Method in class org.unitils.dbunit.dataset.SchemaFactory
-
Gets the primary key column names for the given DbUnit table.
- getPrimaryKeyColumns() - Method in class org.unitils.dbunit.dataset.Row
-
- getPrimaryKeys() - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitTableMetaData
-
- getResourcePickingStrategie() - Method in class org.unitils.dbunit.DbUnitModule
-
use unitil property instead of hardcoding
- getRow() - Method in class org.unitils.dbunit.dataset.comparison.RowDifference
-
- getRowCount() - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitTable
-
- getRows() - Method in class org.unitils.dbunit.dataset.Table
-
- getSchema() - Method in class org.unitils.dbunit.dataset.comparison.SchemaDifference
-
- getSchema() - Method in class org.unitils.dbunit.util.DbUnitDatabaseConnection
-
- getSchemaNames() - Method in class org.unitils.dbunit.util.MultiSchemaDataSet
-
- getTable() - Method in class org.unitils.dbunit.dataset.comparison.TableDifference
-
- getTable(String) - Method in class org.unitils.dbunit.dataset.Schema
-
Gets the table for the given name.
- getTable(String) - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitDataSet
-
- getTableDifferences() - Method in class org.unitils.dbunit.dataset.comparison.SchemaDifference
-
- getTableMetaData() - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitTable
-
- getTableName() - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitTableMetaData
-
- getTableNames() - Method in class org.unitils.dbunit.dataset.Schema
-
- getTables() - Method in class org.unitils.dbunit.dataset.Schema
-
- getTestListener() - Method in class org.unitils.dbunit.DbUnitModule
-
- getType() - Method in class org.unitils.dbunit.dataset.Column
-
- getUnitilsConfiguration() - Method in class org.unitils.dbunit.util.DataSetFileNamesHandler
-
- getValue() - Method in class org.unitils.dbunit.dataset.Column
-
- getValue(int, String) - Method in class org.unitils.dbunit.datasetfactory.impl.DbUnitTable
-