|
||||||||||
| 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
public class 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 :
| 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 | |
|---|---|
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, 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 RunServerTestsTask()
| Method Detail |
|---|
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionTask.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 | |||||||||