public abstract class AbstractStep extends org.apache.tools.ant.ProjectComponent implements DbUnitTaskStep
| Modifier and Type | Field and Description |
|---|---|
static String |
FORMAT_CSV |
static String |
FORMAT_DTD |
static String |
FORMAT_FLAT |
static String |
FORMAT_XLS |
static String |
FORMAT_XML |
| Constructor and Description |
|---|
AbstractStep() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkDataFormat(String format)
Checks if the given data format is a valid one according to
the method
isDataFormat(String). |
protected IDataSet |
getDatabaseDataSet(IDatabaseConnection connection,
List tables) |
static InputSource |
getInputSource(File file)
Creates and returns an
InputSource |
protected IDataSet |
getSrcDataSet(File src,
String format,
boolean forwardonly) |
boolean |
isDataFormat(String format)
Checks if the given format is a format which contains tabular data.
|
boolean |
isOrdered() |
void |
setOrdered(boolean ordered) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecute, getLogMessagepublic static final String FORMAT_FLAT
public static final String FORMAT_XML
public static final String FORMAT_DTD
public static final String FORMAT_CSV
public static final String FORMAT_XLS
protected IDataSet getDatabaseDataSet(IDatabaseConnection connection, List tables) throws DatabaseUnitException
DatabaseUnitExceptionprotected IDataSet getSrcDataSet(File src, String format, boolean forwardonly) throws DatabaseUnitException
DatabaseUnitExceptionpublic boolean isDataFormat(String format)
format - The format to checktrue if the given format is a data format. A data
format is a format which holds tabular data that can be loaded via dbunit.
An example for a data format is "xml" or "flat". A non-data format is "dtd" which
holds only metadata information.protected void checkDataFormat(String format)
isDataFormat(String). If it is not an
IllegalArgumentException is thrown.format - The format to checkIllegalArgumentException - If the given format is not
a valid data formatpublic static InputSource getInputSource(File file) throws MalformedURLException
InputSourcefile - The file for which an InputSource should be createdMalformedURLExceptionpublic boolean isOrdered()
public void setOrdered(boolean ordered)
Copyright © 2002-2017. All Rights Reserved.