|
|||||||||||
| 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.cactus.integration.ant.container.AbstractContainer
Abstract base class for supporting specific containers as nested elements in
the CactusTask.
| Constructor Summary | |
AbstractContainer()
|
|
| Method Summary | |
org.apache.tools.ant.types.PatternSet.NameEntry |
createExclude()
Creates a nested exclude element that is added to the pattern set. |
java.lang.String[] |
getExcludePatterns()
Returns the exclude patterns. |
java.io.File |
getToDir()
Returns the value of the 'todir' attribute. |
void |
init()
The default implementation does nothing. |
boolean |
isEnabled()
Returns whether the container element is enabled, which is determined by the evaluation of the if- and unless conditions |
boolean |
isExcluded(java.lang.String theTestName)
Returns whether a specific test case is to be excluded from being run in the container. |
void |
setAntTaskFactory(AntTaskFactory theFactory)
Sets the factory to use for creating Ant tasks. |
void |
setDeployableFile(java.io.File theDeployableFile)
Sets the file that should be deployed to the container. |
void |
setIf(java.lang.String theIfCondition)
Sets the name of a property that must exist in the project if tests are to be run on the container. |
void |
setLog(org.apache.commons.logging.Log theLog)
Sets the log which the implementation should use. |
void |
setToDir(java.io.File theToDir)
Sets the directory to which the test reports should be written. |
void |
setUnless(java.lang.String theUnlessCondition)
Sets the name of a property that must not exist in the project if tests are to be run on the container. |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, log, log, setProject |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.cactus.integration.ant.container.Container |
getName, getPort, shutDown, startUp |
| Constructor Detail |
public AbstractContainer()
| Method Detail |
public final org.apache.tools.ant.types.PatternSet.NameEntry createExclude()
public final java.lang.String[] getExcludePatterns()
public final void setIf(java.lang.String theIfCondition)
theIfCondition - The property name to setpublic final void setToDir(java.io.File theToDir)
theToDir - The output directory to setpublic final void setUnless(java.lang.String theUnlessCondition)
theUnlessCondition - The property name to setpublic final java.io.File getToDir()
Container
getToDir in interface ContainerContainer.getToDir()public void init()
init in interface ContainerContainer.init()public final boolean isEnabled()
Container
isEnabled in interface Containertrue if the container is enabledContainer.isEnabled()public final boolean isExcluded(java.lang.String theTestName)
Container
isExcluded in interface ContainertheTestName - The fully qualified name of the test fixture class
true if the test should be excluded, otherwise
falseContainer.isExcluded(java.lang.String)public final void setAntTaskFactory(AntTaskFactory theFactory)
Container
setAntTaskFactory in interface ContainertheFactory - The factory to use for creating Ant tasksContainer.setAntTaskFactory(org.apache.cactus.integration.ant.util.AntTaskFactory)public final void setDeployableFile(java.io.File theDeployableFile)
Container
setDeployableFile in interface ContainertheDeployableFile - The file to deployContainer.setDeployableFile(java.io.File)public final void setLog(org.apache.commons.logging.Log theLog)
Container
setLog in interface ContainertheLog - The log to setContainer.setLog(org.apache.commons.logging.Log)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||