|
|||||||||||
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
org.apache.cactus.integration.ant.RunServerTestsTask
Task to automate running in-container unit test. It has the following
syntax when used in Ant :
where
<runservertests testURL="&t;url>"
starttarget="<start target name>"
stoptarget="<stop target name>"
testtarget="<test target name>"/>
<url>
is the URL that is used by this task to
ensure that the server is running. Indeed, the algorithm is as follow :
Constructor Summary | |
RunServerTestsTask()
|
Method Summary | |
GenericContainer.Hook |
createStart()
Creates a nested start element. |
GenericContainer.Hook |
createStop()
Creates a nested stop element. |
GenericContainer.Hook |
createTest()
Creates a nested test element. |
void |
execute()
|
void |
setStartTarget(java.lang.String theStartTarget)
Sets the target to call to start the server. |
void |
setStopTarget(java.lang.String theStopTarget)
Sets the target to call to stop the server. |
void |
setTestTarget(java.lang.String theTestTarget)
Sets the target to call to run the tests. |
void |
setTestUrl(java.net.URL theTestUrl)
Sets the URL to call for testing if the server is running. |
void |
setTimeout(long theTimeout)
|
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, init, 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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RunServerTestsTask()
Method Detail |
public void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
Task.execute()
public final GenericContainer.Hook createStart()
public void setStartTarget(java.lang.String theStartTarget)
theStartTarget
- the Ant target to callpublic final GenericContainer.Hook createStop()
public void setStopTarget(java.lang.String theStopTarget)
theStopTarget
- the Ant target to callpublic final GenericContainer.Hook createTest()
public void setTestTarget(java.lang.String theTestTarget)
theTestTarget
- the Ant target to callpublic void setTestUrl(java.net.URL theTestUrl)
theTestUrl
- the test URL to pingpublic void setTimeout(long theTimeout)
theTimeout
- the timeout after which we stop trying to call the test
URL.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |