Modifier and Type | Method and Description |
---|---|
IDataSet |
AbstractDatabaseTester.getDataSet() |
IDataSet |
DefaultPrepAndExpectedTestCase.getDataSet()
Returns the test dataset.
|
IDataSet |
IDatabaseTester.getDataSet()
Returns the test dataset.
|
protected abstract IDataSet |
DatabaseTestCase.getDataSet()
Returns the test dataset.
|
IDataSet |
DefaultPrepAndExpectedTestCase.getExpectedDataset()
Get the expected dataset, created from the expectedDataFiles.
|
IDataSet |
PrepAndExpectedTestCase.getExpectedDataset()
Get the expected dataset, created from the expectedDataFiles.
|
IDataSet |
DefaultPrepAndExpectedTestCase.getPrepDataset()
Get the prep dataset, created from the prepDataFiles.
|
IDataSet |
PrepAndExpectedTestCase.getPrepDataset()
Get the prep dataset, created from the prepDataFiles.
|
IDataSet |
DefaultPrepAndExpectedTestCase.makeCompositeDataSet(String[] dataFiles)
Make a
IDataSet from the specified files. |
Modifier and Type | Method and Description |
---|---|
static void |
Assertion.assertEquals(IDataSet expectedDataSet,
IDataSet actualDataSet) |
static void |
Assertion.assertEquals(IDataSet expectedDataSet,
IDataSet actualDataSet,
FailureHandler failureHandler) |
static void |
Assertion.assertEqualsByQuery(IDataSet expectedDataset,
IDatabaseConnection connection,
String sqlQuery,
String tableName,
String[] ignoreCols) |
static void |
Assertion.assertEqualsIgnoreCols(IDataSet expectedDataset,
IDataSet actualDataset,
String tableName,
String[] ignoreCols) |
void |
AbstractDatabaseTester.setDataSet(IDataSet dataSet) |
void |
IDatabaseTester.setDataSet(IDataSet dataSet)
Sets the test dataset to use.
|
void |
DefaultPrepAndExpectedTestCase.setExpectedDs(IDataSet expectedDs)
Set the expectedDs.
|
void |
DefaultPrepAndExpectedTestCase.setPrepDs(IDataSet prepDs)
Set the prepDs.
|
Modifier and Type | Method and Description |
---|---|
protected IDataSet |
AbstractStep.getDatabaseDataSet(IDatabaseConnection connection,
List tables,
boolean forwardonly) |
protected IDataSet |
Export.getExportDataSet(IDatabaseConnection connection)
Creates the dataset that is finally used for the export
|
protected IDataSet |
AbstractStep.getSrcDataSet(File src,
String format,
boolean forwardonly) |
Modifier and Type | Method and Description |
---|---|
void |
DbUnitAssert.assertEquals(IDataSet expectedDataSet,
IDataSet actualDataSet)
Asserts that the two specified dataset are equals.
|
void |
DbUnitAssert.assertEquals(IDataSet expectedDataSet,
IDataSet actualDataSet,
FailureHandler failureHandler)
Asserts that the two specified dataset are equals.
|
void |
DbUnitAssert.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.
|
void |
DbUnitAssert.assertEqualsIgnoreCols(IDataSet expectedDataset,
IDataSet actualDataset,
String tableName,
String[] ignoreCols)
Compare one table present in two datasets ignoring specified columns.
|
protected String[] |
DbUnitAssert.getSortedUpperTableNames(IDataSet dataSet) |
Modifier and Type | Class and Description |
---|---|
class |
DatabaseDataSet
Provides access to a database instance as a
IDataSet . |
class |
QueryDataSet
Holds collection of tables resulting from database query.
|
Modifier and Type | Method and Description |
---|---|
IDataSet |
IDatabaseConnection.createDataSet()
Creates a dataset corresponding to the entire database.
|
IDataSet |
AbstractDatabaseConnection.createDataSet() |
IDataSet |
IDatabaseConnection.createDataSet(String[] tableNames)
Creates a dataset containing only the specified tables from
the database.
|
IDataSet |
AbstractDatabaseConnection.createDataSet(String[] tableNames) |
Modifier and Type | Method and Description |
---|---|
ITableIterator |
PrimaryKeyFilter.iterator(IDataSet dataSet,
boolean reversed) |
Constructor and Description |
---|
DatabaseTableIterator(String[] tableNames,
IDataSet dataSet) |
Modifier and Type | Method and Description |
---|---|
static IDataSet |
TablesDependencyHelper.getAllDataset(IDatabaseConnection connection,
PrimaryKeyFilter.PkTableMap rootTables) |
static IDataSet |
TablesDependencyHelper.getAllDataset(IDatabaseConnection connection,
String rootTable,
Set allowedPKs) |
static IDataSet |
TablesDependencyHelper.getDataset(IDatabaseConnection connection,
PrimaryKeyFilter.PkTableMap rootTables) |
static IDataSet |
TablesDependencyHelper.getDataset(IDatabaseConnection connection,
String rootTable,
Set allowedIds) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractDataSet
This abstract class provides the basic implementation of the IDataSet
interface.
|
class |
CachedDataSet
Hold copy of another dataset or a consumed provider content.
|
class |
CaseInsensitiveDataSet
Deprecated.
All IDataSet implementations are case insensitive since DbUnit 1.5 - may change again since tablenames on RDBMSes can be case sensitive
|
class |
CompositeDataSet
Combines multiple datasets into a single logical dataset.
|
class |
DefaultDataSet
Simple implementation of a dataset backed by
ITable objects which can
be added dynamically. |
class |
FilteredDataSet
Decorates a dataset and exposes only some tables from it.
|
class |
ForwardOnlyDataSet
Decorator that allows forward only access to decorated dataset.
|
class |
LowerCaseDataSet
Specialized IDataSet decorator that convert the table name and
column names to lower case.
|
class |
ReplacementDataSet
Decorator that replace configured values from the decorated dataset
with replacement values.
|
class |
SortedDataSet
Decorator that returns the
ITable s of the decorated dataset
as SortedTable s. |
Modifier and Type | Method and Description |
---|---|
static void |
DataSetUtils.assertEquals(IDataSet expectedDataSet,
IDataSet actualDataSet)
Deprecated.
Use Assertion.assertEquals
|
static String[] |
DataSetUtils.getReverseTableNames(IDataSet dataSet)
Returns the table names from the specified dataset in reverse order.
|
static ITable[] |
DataSetUtils.getTables(IDataSet dataSet)
Returns the tables from the specified dataset.
|
static ITable[] |
DataSetUtils.getTables(String[] names,
IDataSet dataSet)
Search and returns the specified tables from the specified dataSet.
|
Constructor and Description |
---|
CachedDataSet(IDataSet dataSet)
Creates a copy of the specified dataset.
|
CaseInsensitiveDataSet(IDataSet dataSet)
Deprecated.
|
CompositeDataSet(IDataSet dataSet)
Creates a composite dataset that combines duplicate tables of the specified dataset.
|
CompositeDataSet(IDataSet[] dataSets)
Creates a composite dataset that combines specified datasets.
|
CompositeDataSet(IDataSet[] dataSets,
boolean combine)
Creates a composite dataset that combines specified datasets.
|
CompositeDataSet(IDataSet[] dataSets,
boolean combine,
boolean caseSensitiveTableNames)
Creates a composite dataset that combines specified datasets.
|
CompositeDataSet(IDataSet dataSet,
boolean combine)
Deprecated.
This constructor is useless when the combine parameter is
false . Use overload that doesn't have the combine argument. |
CompositeDataSet(IDataSet dataSet1,
IDataSet dataSet2)
Creates a composite dataset that combines the two specified datasets.
|
CompositeDataSet(IDataSet dataSet1,
IDataSet dataSet2,
boolean combine)
Creates a composite dataset that combines the two specified datasets.
|
FilteredDataSet(ITableFilter filter,
IDataSet dataSet)
Creates a FilteredDataSet that decorates the specified dataset and
exposes only the tables allowed by the specified filter.
|
FilteredDataSet(String[] tableNames,
IDataSet dataSet)
Creates a FilteredDataSet that decorates the specified dataset and
exposes only the specified tables using
SequenceTableFilter as
filtering strategy. |
ForwardOnlyDataSet(IDataSet dataSet) |
LowerCaseDataSet(IDataSet dataSet) |
ReplacementDataSet(IDataSet dataSet)
Create a new ReplacementDataSet object that decorates the specified dataset.
|
ReplacementDataSet(IDataSet dataSet,
Map objectMap,
Map substringMap)
Create a new ReplacementDataSet object that decorates the specified dataset.
|
SortedDataSet(IDataSet dataSet) |
Modifier and Type | Class and Description |
---|---|
class |
CsvDataSet
This class constructs an IDataSet given a directory containing CSV
files.
|
class |
CsvURLDataSet
This class constructs an IDataSet given a base URL containing CSV
files.
|
Modifier and Type | Method and Description |
---|---|
void |
CsvDataSetWriter.write(IDataSet dataSet) |
static void |
CsvDataSetWriter.write(IDataSet dataset,
File dest) |
Modifier and Type | Class and Description |
---|---|
class |
XlsDataSet
This dataset implementation can read and write MS Excel documents.
|
Modifier and Type | Method and Description |
---|---|
void |
XlsDataSetWriter.write(IDataSet dataSet,
OutputStream out)
Write the specified dataset to the specified Excel document.
|
static void |
XlsDataSet.write(IDataSet dataSet,
OutputStream out)
Write the specified dataset to the specified Excel document.
|
Modifier and Type | Method and Description |
---|---|
String[] |
AbstractTableFilter.getTableNames(IDataSet dataSet) |
String[] |
SequenceTableFilter.getTableNames(IDataSet dataSet) |
String[] |
ITableFilter.getTableNames(IDataSet dataSet)
Returns the table names allowed by this filter from the specified dataset.
|
ITableIterator |
AbstractTableFilter.iterator(IDataSet dataSet,
boolean reversed) |
ITableIterator |
SequenceTableFilter.iterator(IDataSet dataSet,
boolean reversed) |
ITableIterator |
ITableFilter.iterator(IDataSet dataSet,
boolean reversed)
Returns iterator of tables allowed by this filter from the specified dataset.
|
Constructor and Description |
---|
SequenceTableIterator(String[] tableNames,
IDataSet dataSet) |
Modifier and Type | Class and Description |
---|---|
class |
SqlLoaderControlDataSet
This class constructs an
IDataSet given a directory containing control
files. |
Modifier and Type | Class and Description |
---|---|
class |
StreamingDataSet
Dataset that consumes producer asynchronously.
|
Constructor and Description |
---|
DataSetProducerAdapter(IDataSet dataSet) |
Modifier and Type | Class and Description |
---|---|
class |
FlatDtdDataSet |
class |
FlatXmlDataSet
Reads and writes flat XML dataset document.
|
class |
XmlDataSet
Reads and writes original XML dataset document.
|
Modifier and Type | Method and Description |
---|---|
FlatXmlDataSetBuilder |
FlatXmlDataSetBuilder.setMetaDataSet(IDataSet metaDataSet)
Set the metadata information (column info etc.) to be used.
|
void |
FlatXmlWriter.write(IDataSet dataSet)
Writes the given
IDataSet using this writer. |
void |
FlatDtdWriter.write(IDataSet dataSet) |
void |
XmlDataSetWriter.write(IDataSet dataSet)
Writes the given
IDataSet using this writer. |
static void |
FlatDtdDataSet.write(IDataSet dataSet,
OutputStream out)
Write the specified dataset to the specified output stream as DTD.
|
static void |
XmlDataSet.write(IDataSet dataSet,
OutputStream out)
Write the specified dataset to the specified output stream as xml.
|
static void |
FlatXmlDataSet.write(IDataSet dataSet,
OutputStream out)
Write the specified dataset to the specified output stream as xml.
|
static void |
XmlDataSet.write(IDataSet dataSet,
OutputStream out,
String encoding)
Write the specified dataset to the specified output stream as xml (using specified encoding).
|
static void |
FlatDtdDataSet.write(IDataSet dataSet,
Writer out)
Write the specified dataset to the specified writer as DTD.
|
static void |
XmlDataSet.write(IDataSet dataSet,
Writer writer)
Write the specified dataset to the specified writer as xml.
|
static void |
FlatXmlDataSet.write(IDataSet dataSet,
Writer writer)
Write the specified dataset to the specified writer as xml.
|
static void |
XmlDataSet.write(IDataSet dataSet,
Writer writer,
String encoding)
Write the specified dataset to the specified writer as xml.
|
static void |
FlatXmlDataSet.write(IDataSet dataSet,
Writer writer,
String encoding)
Write the specified dataset to the specified writer as xml.
|
static void |
FlatXmlDataSet.writeDtd(IDataSet dataSet,
OutputStream out)
|
Constructor and Description |
---|
FlatXmlDataSet(InputStream xmlStream,
IDataSet metaDataSet)
Deprecated.
since 2.4.7 - use
FlatXmlDataSetBuilder to create a FlatXmlDataSet |
FlatXmlDataSet(Reader xmlReader,
IDataSet metaDataSet)
Deprecated.
since 2.4.7 - use
FlatXmlDataSetBuilder to create a FlatXmlDataSet |
FlatXmlProducer(InputSource xmlSource,
IDataSet metaDataSet) |
Modifier and Type | Method and Description |
---|---|
IDataSet |
MsSqlConnection.createDataSet() |
IDataSet |
MsSqlConnection.createDataSet(String[] tableNames) |
Modifier and Type | Method and Description |
---|---|
void |
InsertIdentityOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
Modifier and Type | Method and Description |
---|---|
void |
DeleteAllOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
void |
TruncateTableOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
void |
RefreshOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
void |
CloseConnectionOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
void |
TransactionOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
void |
AbstractBatchOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
void |
CompositeOperation.execute(IDatabaseConnection connection,
IDataSet dataSet) |
abstract void |
DatabaseOperation.execute(IDatabaseConnection connection,
IDataSet dataSet)
Executes this operation on the specified database using the specified
dataset contents.
|
protected ITableIterator |
AbstractBatchOperation.iterator(IDataSet dataSet)
Returns list of tables this operation is applied to.
|
protected ITableIterator |
DeleteOperation.iterator(IDataSet dataSet) |
Modifier and Type | Method and Description |
---|---|
IDataSet |
DataFileLoader.load(String fileName)
Load the specified filename from the classpath into a dbUnit dataset.
|
IDataSet |
AbstractDataFileLoader.load(String filename)
Load the specified filename from the classpath into a dbUnit dataset.
|
protected IDataSet |
CsvDataFileLoader.loadDataSet(URL url)
Make the dbUnit dataset (
IDataSet ) from the
input stream of a dbUnit data file. |
protected abstract IDataSet |
AbstractDataFileLoader.loadDataSet(URL url)
Make the dbUnit dataset (
IDataSet ) from the
input stream of a dbUnit data file. |
protected IDataSet |
XlsDataFileLoader.loadDataSet(URL url)
Make the dbUnit dataset (
IDataSet ) from the
input stream of a dbUnit data file. |
protected IDataSet |
FullXmlDataFileLoader.loadDataSet(URL url)
Make the dbUnit dataset (
IDataSet ) from the
input stream of a dbUnit data file. |
protected IDataSet |
FlatXmlDataFileLoader.loadDataSet(URL url)
Make the dbUnit dataset (
IDataSet ) from the
input stream of a dbUnit data file. |
Modifier and Type | Method and Description |
---|---|
protected ReplacementDataSet |
AbstractDataFileLoader.processReplacementTokens(IDataSet ds)
Add the replacements in the maps (objects and substrings) to the
specified dataset.
|
Copyright © 2002–2018. All rights reserved.