|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.sourceforge.anttestsetgen.TestSet
A TestSet contains the description of a test set.
A TestSet has the following attributes: - name - rowtoselect A TestSet has the following subtasks: - Query - Entries
| Field Summary | |
static java.lang.String |
SELECT_ALL
Select all valid rows from the result set. |
static java.lang.String |
SELECT_FIRST_ROW
Select the first valid row from the result set. |
| 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 | |
TestSet()
|
|
| Method Summary | |
void |
addConfiguredEntry(Entry entry)
Add a entry to the testset. |
void |
addConfiguredQuery(Query query)
Add a Query to the TestSet. |
void |
addConfiguredValidation(Validation validation)
Add an Configured Validation to this TestSet. |
void |
generateTestSet(java.sql.Connection connection)
Generate a testset. |
java.util.List |
getEntries()
Retrieve of the entries of the TestSet. |
java.lang.String |
getName()
Retreive the name attribute. |
java.lang.String |
getQuery()
Retrieve the query from the TestSet. |
java.lang.String |
getRowtoselect()
Retrieve the rowtoselect attribute. |
java.util.List |
getUniqueEntriesInTestSet()
Retrieve a list with all the unique entries in the test set. |
Validation |
getValidation()
Retrieve the validation class. |
void |
setName(java.lang.String name)
Set the name attribute. |
void |
setRowtoselect(java.lang.String rowtoselect)
Set the rowtoselect attribute. |
| Methods inherited from class org.apache.tools.ant.Task |
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
| 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 |
| Field Detail |
public static final java.lang.String SELECT_FIRST_ROW
public static final java.lang.String SELECT_ALL
| Constructor Detail |
public TestSet()
| Method Detail |
public void setName(java.lang.String name)
name - The name of the TestSetgetName()public java.lang.String getName()
setName(java.lang.String)
public void setRowtoselect(java.lang.String rowtoselect)
throws org.apache.tools.ant.BuildException
rowtoselect - Defines which row should be selected from the resultset: the first, the last or a random row.
org.apache.tools.ant.BuildException - A BuildException is thrown if rowtoselect contains an invalid value.getRowtoselect()public java.lang.String getRowtoselect()
org.apache.tools.ant.BuildException - A BuildException is thrown in rowtoselect contains an invalid value.setRowtoselect(java.lang.String)public java.util.List getUniqueEntriesInTestSet()
public void addConfiguredQuery(Query query)
throws org.apache.tools.ant.BuildException
query - The query to added to the TestSet
org.apache.tools.ant.BuildException - A BuildException is thrown in more then one queries are addedgetQuery()
public java.lang.String getQuery()
throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - In case the test set doesn't contain a query.addConfiguredQuery(net.sourceforge.anttestsetgen.Query)
public void addConfiguredValidation(Validation validation)
throws org.apache.tools.ant.BuildException
validation - The validation class (required)
org.apache.tools.ant.BuildException - In case there already is a validation defined in this testset.getValidation()public Validation getValidation()
addConfiguredValidation(net.sourceforge.anttestsetgen.Validation)public void addConfiguredEntry(Entry entry)
entry - A entry that describes how to map a database column on a key in the property file.public java.util.List getEntries()
Entrypublic void generateTestSet(java.sql.Connection connection)
connection - An open connection to the database
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||