Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.integration.ant » [javadoc | source]
org.apache.cactus.integration.ant
public class: RunServerTestsTask [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.Task
         org.apache.cactus.integration.ant.RunServerTestsTask

All Implemented Interfaces:
    Cloneable

Task to automate running in-container unit test. It has the following syntax when used in Ant :
<runservertests testURL="&t;url>"
starttarget="<start target name>"
stoptarget="<stop target name>"
testtarget="<test target name>"/>
where <url> is the URL that is used by this task to ensure that the server is running. Indeed, the algorithm is as follow :
Method from org.apache.cactus.integration.ant.RunServerTestsTask Summary:
createStart,   createStop,   createTest,   execute,   setStartTarget,   setStopTarget,   setTestTarget,   setTestURL,   setTimeout
Methods from org.apache.tools.ant.Task:
bindToOwner,   execute,   getOwningTarget,   getRuntimeConfigurableWrapper,   getTaskName,   getTaskType,   init,   log,   log,   log,   log,   maybeConfigure,   perform,   reconfigure,   setOwningTarget,   setRuntimeConfigurableWrapper,   setTaskName,   setTaskType
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.integration.ant.RunServerTestsTask Detail:
 public final GenericContainer.Hook createStart() 
    Creates a nested start element.
 public final GenericContainer.Hook createStop() 
    Creates a nested stop element.
 public final GenericContainer.Hook createTest() 
    Creates a nested test element.
 public  void execute() throws BuildException 
    {@inheritDoc}
 public  void setStartTarget(String theStartTarget) 
    Sets the target to call to start the server.
 public  void setStopTarget(String theStopTarget) 
    Sets the target to call to stop the server.
 public  void setTestTarget(String theTestTarget) 
    Sets the target to call to run the tests.
 public  void setTestURL(URL theTestURL) 
    Sets the URL to call for testing if the server is running.
 public  void setTimeout(long theTimeout)