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,
boolean forwardonly) |
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, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute, getLogMessage
public 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, boolean forwardonly) throws DatabaseUnitException
DatabaseUnitException
protected IDataSet getSrcDataSet(File src, String format, boolean forwardonly) throws DatabaseUnitException
DatabaseUnitException
public 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
InputSource
file
- The file for which an InputSource
should be createdMalformedURLException
public boolean isOrdered()
public void setOrdered(boolean ordered)
Copyright © 2002–2019. All rights reserved.