|
||||||||||
| 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.tools.ant.taskdefs.optional.junit.JUnitTask
org.apache.cactus.integration.ant.CactusTestTask
public class CactusTestTask
An Ant task that extends the optional JUnit task to provide support for in-container testing. This class is a refactor of CactusTask v.133 and RunContainerTask v.133 to use cargo
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask |
|---|
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.ForkMode, org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.SummaryAttribute |
| 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 | |
|---|---|
CactusTestTask()
Constructor. |
|
| Method Summary | |
|---|---|
void |
execute()
|
void |
init()
|
void |
setContextURL(java.lang.String theContextURL)
Sets the context url that will be tested. |
void |
setEarFile(java.io.File theEarFile)
Sets the enterprise application archive that will be tested. |
void |
setLogs(java.io.File theLogs)
Sets the Logs. |
void |
setRunLocal(boolean theRunLocal)
Sets the scope of the test. |
void |
setServerName(java.lang.String theServerName)
Sets the server host that will be tested. |
void |
setServletPort(java.lang.String theServletPort)
Sets the servlet port that will be tested. |
void |
setTimeout(long theTimeout)
|
void |
setToDir(java.io.File theToDir)
Sets the test report dir. |
void |
setupLogs()
Set up the logs. |
void |
setWarFile(java.io.File theWarFile)
Sets the web application archive that will be tested. |
| Methods inherited from class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask |
|---|
actOnTestResult, addAssertions, addClasspathEntry, addConfiguredSysproperty, addEnv, addFormatter, addSysproperty, addSyspropertyset, addTest, allTests, createBatchTest, createBootclasspath, createClasspath, createJvmarg, createPermissions, createWatchdog, execute, execute, executeOrQueue, getCommandline, getDefaultOutput, getIndividualTests, getOutput, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, setDir, setErrorProperty, setFailureProperty, setFiltertrace, setFork, setForkMode, setHaltonerror, setHaltonfailure, setIncludeantruntime, setJvm, setMaxmemory, setNewenvironment, setPrintsummary, setReloading, setShowOutput, setTempdir, setTimeout |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, 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 CactusTestTask()
throws java.lang.Exception
java.lang.Exception - If the constructor of JUnitTask throws an exception| Method Detail |
|---|
public void init()
init in class org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskTask.init()
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.taskdefs.optional.junit.JUnitTaskorg.apache.tools.ant.BuildExceptionTask.execute()public final void setEarFile(java.io.File theEarFile)
theEarFile - The EAR file to setpublic final void setWarFile(java.io.File theWarFile)
theWarFile - The WAR file to setpublic final void setServerName(java.lang.String theServerName)
theServerName - The server hostpublic final void setServletPort(java.lang.String theServletPort)
theServletPort - The servlet portpublic final void setContextURL(java.lang.String theContextURL)
theContextURL - The context urlpublic final void setToDir(java.io.File theToDir)
theToDir - The test report to setpublic final void setRunLocal(boolean theRunLocal)
theRunLocal - Run Local definepublic final void setLogs(java.io.File theLogs)
theLogs - Different logs definepublic void setTimeout(long theTimeout)
theTimeout - the timeout after which we stop trying to call the test
URL.public void setupLogs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||