public abstract class AbstractStep extends org.apache.tools.ant.ProjectComponent implements DbUnitTaskStep
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FORMAT_CSV |
static java.lang.String |
FORMAT_DTD |
static java.lang.String |
FORMAT_FLAT |
static java.lang.String |
FORMAT_XLS |
static java.lang.String |
FORMAT_XML |
Constructor and Description |
---|
AbstractStep() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDataFormat(java.lang.String format)
Checks if the given data format is a valid one according to
the method
isDataFormat(String) . |
protected IDataSet |
getDatabaseDataSet(IDatabaseConnection connection,
java.util.List tables) |
static org.xml.sax.InputSource |
getInputSource(java.io.File file)
Creates and returns an
InputSource |
protected IDataSet |
getSrcDataSet(java.io.File src,
java.lang.String format,
boolean forwardonly) |
boolean |
isDataFormat(java.lang.String format)
Checks if the given format is a format which contains tabular data.
|
boolean |
isOrdered() |
void |
setOrdered(boolean ordered) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
execute, getLogMessage
public static final java.lang.String FORMAT_FLAT
public static final java.lang.String FORMAT_XML
public static final java.lang.String FORMAT_DTD
public static final java.lang.String FORMAT_CSV
public static final java.lang.String FORMAT_XLS
protected IDataSet getDatabaseDataSet(IDatabaseConnection connection, java.util.List tables) throws DatabaseUnitException
DatabaseUnitException
protected IDataSet getSrcDataSet(java.io.File src, java.lang.String format, boolean forwardonly) throws DatabaseUnitException
DatabaseUnitException
public boolean isDataFormat(java.lang.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(java.lang.String format)
isDataFormat(String)
. If it is not an
IllegalArgumentException
is thrown.format
- The format to checkjava.lang.IllegalArgumentException
- If the given format is not
a valid data formatpublic static org.xml.sax.InputSource getInputSource(java.io.File file) throws java.net.MalformedURLException
InputSource
file
- The file for which an InputSource
should be createdjava.net.MalformedURLException
public boolean isOrdered()
public void setOrdered(boolean ordered)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002-2020. All Rights Reserved.