|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.sourceforge.sqlunit.ant.SqlunitTask
public class SqlunitTask
SqlunitTask is a custom ant task that accepts a testFile name and runs the SQLUnit test class with the given XML test script.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
SqlunitTask()
|
Method Summary | |
---|---|
void |
addFileSet(org.apache.tools.ant.types.FileSet fileSet)
Sets the value of a list of SQLUnit XML test files specified by a nested fileSet element. |
protected IReporter |
createReporter()
|
void |
execute()
Executes the task. |
void |
setDebug(boolean debug)
Sets the value of the attribute debug. |
void |
setFailureProperty(java.lang.String failureProperty)
Sets the value of the failureProperty attribute. |
void |
setHaltOnFailure(boolean haltOnFailure)
Sets the value of the attribute haltOnFailure. |
void |
setLogfile(java.lang.String logfile)
Sets the value of the logfile attribute. |
void |
setLogformat(java.lang.String logformat)
Sets the value of the attribute logformat. |
void |
setName(java.lang.String name)
Sets the value of the attribute name. |
void |
setTestfile(java.lang.String testfile)
Sets the value of the attribute testFile. |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SqlunitTask()
Method Detail |
---|
public final void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- if thrown by the taskpublic final void setTestfile(java.lang.String testfile)
testfile
- the full path name of the test XML script.public final void setName(java.lang.String name)
name
- the name of the test case (for reporting purposes).public final void setHaltOnFailure(boolean haltOnFailure)
haltOnFailure
- can be set to true or false. Defaults to false.public final void setFailureProperty(java.lang.String failureProperty)
failureProperty
- name of ant property.public final void setDebug(boolean debug)
debug
- can be set to true or false. If true, returns the
full stack trace of where the problem occured, else returns a short
error message.public final void setLogformat(java.lang.String logformat)
logformat
- the log format to set.public final void setLogfile(java.lang.String logfile)
logfile
- the file name to which to log SQLUnit output. If
not set, the output will be sent to STDERR. Note that each run
of SQLUnit will overwrite the log file.public final void addFileSet(org.apache.tools.ant.types.FileSet fileSet)
fileSet
- the fileSet to add.protected IReporter createReporter() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |