|
|||||||||
| Home >> All >> org >> apache >> cactus >> integration >> ant >> [ container overview ] | PREV NEXT | ||||||||
A
- AbstractContainer - class org.apache.cactus.integration.ant.container.AbstractContainer.
- Abstract base class for supporting specific containers as nested elements in the org.apache.cactus.integration.ant.CactusTask.
- AbstractContainer() - Constructor for class org.apache.cactus.integration.ant.container.AbstractContainer
- AbstractJavaContainer - class org.apache.cactus.integration.ant.container.AbstractJavaContainer.
- Abstract base class for containers that perform the starting and stopping of the server by executing Java classes in a forked JVM.
- AbstractJavaContainer() - Constructor for class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- AbstractServerRun - class org.apache.cactus.integration.ant.container.AbstractServerRun.
- Abstract class for starting/stopping an application server.
- AbstractServerRun(String[]) - Constructor for class org.apache.cactus.integration.ant.container.AbstractServerRun
- actualMethod - Variable in class org.apache.cactus.integration.ant.container.MockHttpServer
- The actual method requested.
- actualRequestCount - Variable in class org.apache.cactus.integration.ant.container.MockHttpServer
- The number of requests (excluding the internal SHUTDOWN request).
- actualUri - Variable in class org.apache.cactus.integration.ant.container.MockHttpServer
- The actual request URI.
- addExtraClasspath(Java) - Method in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- Add extra container classpath entries specified by the user.
- addTask(Task) - Method in class org.apache.cactus.integration.ant.container.GenericContainer.Hook
- addToolsJarToClasspath(Path) - Method in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- Adds the tools.jar to the classpath, except for Mac OSX as it is not needed.
- alreadyRunning - Variable in class org.apache.cactus.integration.ant.container.ContainerRunner
- Whether the container had already been running before.
- antTaskFactory - Variable in class org.apache.cactus.integration.ant.container.AbstractContainer
- The factory for creating ant tasks.
- append - Variable in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- Whether output of the container should be appended to an existing file, or the existing file should be truncated.
- args - Variable in class org.apache.cactus.integration.ant.container.AbstractServerRun
- The command line arguments
C
- Container - interface org.apache.cactus.integration.ant.container.Container.
- Interface for classes that can be used as nested elements in the
<containers>element of the<cactus>task. - ContainerFactory - class org.apache.cactus.integration.ant.container.ContainerFactory.
- Factory for container support classes.
- ContainerFactory() - Constructor for class org.apache.cactus.integration.ant.container.ContainerFactory
- Constructor.
- ContainerRunner - class org.apache.cactus.integration.ant.container.ContainerRunner.
- Support class that handles the lifecycle of a container, which basically consists of startup and shutdown.
- ContainerRunner(Container) - Constructor for class org.apache.cactus.integration.ant.container.ContainerRunner
- Constructor.
- ContainerWrapper - class org.apache.cactus.integration.ant.container.ContainerWrapper.
- Class that wraps around an implementation of the
Containerinterface and delegates all calls to the wrapped instance. - ContainerWrapper(Container) - Constructor for class org.apache.cactus.integration.ant.container.ContainerWrapper
- Constructor.
- checkInterval - Variable in class org.apache.cactus.integration.ant.container.ContainerRunner
- The time interval in milliseconds to sleep between polling the container.
- cleanTempDirectory(File) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Clean the temporary directory.
- container - Variable in class org.apache.cactus.integration.ant.container.ContainerRunner
- The container to run.
- container - Variable in class org.apache.cactus.integration.ant.container.ContainerWrapper
- The nested container.
- container - Variable in class org.apache.cactus.integration.ant.container.TestAbstractContainer
- The instance to test
- containerClasspath - Variable in class org.apache.cactus.integration.ant.container.AbstractContainer
- Additional classpath entries for the classpath that will be used to start the containers.
- createAntTask(String) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Creates and returns a new instance of the Ant task mapped to the specified logical name using the org.apache.cactus.integration.ant.util.AntTaskFactory set.
- createContainer(String) - Method in class org.apache.cactus.integration.ant.container.ContainerFactory
- Creates and returns the implementation of the
Containerinterface which is mapped to the specified name. - createDirectory(File, String) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Convenience method for creating a new directory inside another one.
- createExclude() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Creates a nested exclude element that is added to the pattern set.
- createFilterChain() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Creates the default filter chain that should be applied while copying container configuration files to the temporary directory from which the container is started.
- createJavaForShutDown() - Method in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- Creates a preinitialized instance of the Ant Java task to be used for shutting down the container.
- createJavaForStartUp() - Method in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- Creates a preinitialized instance of the Ant Java task to be used for starting down the container.
- createShutDown() - Method in class org.apache.cactus.integration.ant.container.GenericContainer
- Creates a nested 'shutdown' element.
- createStartUp() - Method in class org.apache.cactus.integration.ant.container.GenericContainer
- Creates a nested 'startup' element.
- createSysProperty(String, File) - Method in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- Convenience method to create an Ant environment variable that points to a file.
- createSysProperty(String, Path) - Method in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- Convenience method to create an Ant environment variable that contains a path.
- createSysProperty(String, String) - Method in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- Convenience method to create an Ant environment variable that contains a string.
D
- DEFAULT_CONTAINERS_BUNDLE - Static variable in class org.apache.cactus.integration.ant.container.ContainerFactory
- Name of the resource bundle that contains the definitions of the default containers supported by this element.
- defaultContainers - Variable in class org.apache.cactus.integration.ant.container.ContainerFactory
- The list of nested container elements.
- deployableFile - Variable in class org.apache.cactus.integration.ant.container.AbstractContainer
- The WAR or EAR that should be deployed to the container.
- doRun() - Method in class org.apache.cactus.integration.ant.container.AbstractServerRun
- Parse and process the command line to start/stop the server.
- doStartServer(String[]) - Method in class org.apache.cactus.integration.ant.container.AbstractServerRun
- Starts the server (in a blocking mode) and set up a socket listener.
- doStopServer(String[], Thread) - Method in class org.apache.cactus.integration.ant.container.AbstractServerRun
- Stops the server by connecting to the socket set up when the server was started.
E
- execute() - Method in class org.apache.cactus.integration.ant.container.GenericContainer.Hook
- Executes the hook by either calling the specified target, or invoking all nested tasks.
- expectMethod(String) - Method in class org.apache.cactus.integration.ant.container.MockHttpServer
- Advise the server to expect a specific HTTP method in requests.
- expectRequestCount(int) - Method in class org.apache.cactus.integration.ant.container.MockHttpServer
- Advise the server to expect a specific number of requests.
- expectShutDownCalled(boolean) - Method in class org.apache.cactus.integration.ant.container.MockContainer
- Sets whether to expect a call to the shutDown() method.
- expectStartUpCalled(boolean) - Method in class org.apache.cactus.integration.ant.container.MockContainer
- Sets whether to expect a call to the startUp() method.
- expectUri(String) - Method in class org.apache.cactus.integration.ant.container.MockHttpServer
- Advise the server to expect a specific request URI in requests.
- expectedMethod - Variable in class org.apache.cactus.integration.ant.container.MockHttpServer
- The HTTP method expected.
- expectedRequestCount - Variable in class org.apache.cactus.integration.ant.container.MockHttpServer
- The expected number of requests.
- expectedShutDownCalled - Variable in class org.apache.cactus.integration.ant.container.MockContainer
- Whether it is expected that the shutDown() method is called.
- expectedStartUpCalled - Variable in class org.apache.cactus.integration.ant.container.MockContainer
- Whether it is expected that the startUp() method is called.
- expectedUri - Variable in class org.apache.cactus.integration.ant.container.MockHttpServer
- The request URI expected.
F
- findUnusedLocalPort(String, int, int) - Static method in class org.apache.cactus.integration.ant.container.MockHttpServer
- Returns a free port number on the specified host within the given range.
G
- GenericContainer - class org.apache.cactus.integration.ant.container.GenericContainer.
- A generic container that can be nested in the org.apache.cactus.integration.ant.CactusTask to support complete customization of the container lifecycle from a build file.
- GenericContainer() - Constructor for class org.apache.cactus.integration.ant.container.GenericContainer
- GenericContainer.Hook - class org.apache.cactus.integration.ant.container.GenericContainer.Hook.
- Class that represents the nested 'startup' and 'shutdown' elements.
- GenericContainer.Hook() - Constructor for class org.apache.cactus.integration.ant.container.GenericContainer.Hook
- getBaseURL() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- getBaseURL() - Method in interface org.apache.cactus.integration.ant.container.Container
- getBaseURL() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- getBaseURL() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- getContainerClasspath() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- getContainerClasspath() - Method in interface org.apache.cactus.integration.ant.container.Container
- getContainerClasspath() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- getContainerClasspath() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- getDeployableFile() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Returns the web-application archive that is to be deployed to the container.
- getExcludePatterns() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Returns the exclude patterns.
- getJVMArgs() - Method in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- getLog() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Returns the log to use.
- getName() - Method in interface org.apache.cactus.integration.ant.container.Container
- Returns a displayable name of the container for logging purposes.
- getName() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- getName() - Method in class org.apache.cactus.integration.ant.container.GenericContainer
- getName() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- getPort() - Method in interface org.apache.cactus.integration.ant.container.Container
- Returns the port to which the container should listen.
- getPort() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- getPort() - Method in class org.apache.cactus.integration.ant.container.GenericContainer
- Returns the port to which the container should listen.
- getPort() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- getPort() - Method in class org.apache.cactus.integration.ant.container.MockHttpServer
- Returns the port number the server is listening on.
- getProtocol() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- getProtocol() - Method in interface org.apache.cactus.integration.ant.container.Container
- Returns the protocol, that should be used for communication to the container.
- getProtocol() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- getProtocol() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- getServer() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- getServer() - Method in interface org.apache.cactus.integration.ant.container.Container
- Returns the server (name or IP) to where the container is living.
- getServer() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- getServer() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- getServerName() - Method in class org.apache.cactus.integration.ant.container.ContainerRunner
- Returns the server name as reported in the 'Server' header of HTTP responses from the server.
- getStartUpWait() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- getStartUpWait() - Method in interface org.apache.cactus.integration.ant.container.Container
- getStartUpWait() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- getStartUpWait() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- getSystemProperties() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- getSystemProperties() - Method in interface org.apache.cactus.integration.ant.container.Container
- getSystemProperties() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- getSystemProperties() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- getTestContext() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- getTestContext() - Method in interface org.apache.cactus.integration.ant.container.Container
- getTestContext() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- getTestContext() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- getToDir() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- getToDir() - Method in interface org.apache.cactus.integration.ant.container.Container
- Returns the value of the 'todir' attribute.
- getToDir() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- getToDir() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- getToolsJar() - Method in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- Returns the file containing the JDK tools (such as the compiler).
H
- host - Variable in class org.apache.cactus.integration.ant.container.AbstractServerRun
- Host name.
I
- ifCondition - Variable in class org.apache.cactus.integration.ant.container.AbstractContainer
- Name of a property that must exist in the project if tests are to be run on the container.
- init() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- The default implementation does nothing.
- init() - Method in interface org.apache.cactus.integration.ant.container.Container
- Subclasses should implement this method to perform any initialization that may be necessary.
- init() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- init() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- isAvailable(int) - Method in class org.apache.cactus.integration.ant.container.ContainerRunner
- Tests whether an HTTP return code corresponds to a valid connection to the test URL or not.
- isEnabled() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- isEnabled() - Method in interface org.apache.cactus.integration.ant.container.Container
- Returns whether the container element is enabled, which is determined by the evaluation of the if- and unless conditions
- isEnabled() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- isEnabled() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- isExcluded(String) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- isExcluded(String) - Method in interface org.apache.cactus.integration.ant.container.Container
- Returns whether a specific test case is to be excluded from being run in the container.
- isExcluded(String) - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- isExcluded(String) - Method in class org.apache.cactus.integration.ant.container.MockContainer
- isOSX() - Method in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- Is the user running on a Macintosh OS X system? Heuristic derived from Apple Tech Note 2042.
- isShutDownSet() - Method in class org.apache.cactus.integration.ant.container.GenericContainer
- Returns whether a way to start the container has already been set, either as a target, or as a nested task container.
- isStartUpSet() - Method in class org.apache.cactus.integration.ant.container.GenericContainer
- Returns whether a way to stop the container has already been set, either as a target, or as a nested task container.
- isStarted - Variable in class org.apache.cactus.integration.ant.container.AbstractServerRun
- Flag that specifies if the server is already started to prevent starting it if it is.
- isStopped() - Method in class org.apache.cactus.integration.ant.container.MockHttpServer
- Returns whether the server is stopped (or about to stop, to be precise).
J
- jvmArgs - Variable in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- The arguments for JVM.
L
- log - Variable in class org.apache.cactus.integration.ant.container.AbstractContainer
- The log to use.
- log - Variable in class org.apache.cactus.integration.ant.container.ContainerRunner
- The log to use.
- log - Variable in class org.apache.cactus.integration.ant.container.MockHttpServer
- The log to write messages to.
M
- MockContainer - class org.apache.cactus.integration.ant.container.MockContainer.
- Mock implementation of the Container interface.
- MockContainer(MockHttpServer) - Constructor for class org.apache.cactus.integration.ant.container.MockContainer
- Constructor.
- MockContainer() - Constructor for class org.apache.cactus.integration.ant.container.MockContainer
- Constructor.
- MockHttpServer - class org.apache.cactus.integration.ant.container.MockHttpServer.
- A very simple HTTP server that binds to a port and responds to all requests with a predefined response.
- MockHttpServer(int) - Constructor for class org.apache.cactus.integration.ant.container.MockHttpServer
- Constructor.
N
- name - Variable in class org.apache.cactus.integration.ant.container.GenericContainer
- Name of the container for logging purposes.
O
- org.apache.cactus.integration.ant.container - package org.apache.cactus.integration.ant.container
- output - Variable in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- The file to which output of the container should be written.
P
- patternSet - Variable in class org.apache.cactus.integration.ant.container.AbstractContainer
- A pattern set which lists patterns for names of test cases that are to be excluded from a specific container.
- port - Variable in class org.apache.cactus.integration.ant.container.AbstractServerRun
- Internal socket port that we use to stop the server.
- port - Variable in class org.apache.cactus.integration.ant.container.GenericContainer
- The port to which the container should be bound.
- port - Variable in class org.apache.cactus.integration.ant.container.MockHttpServer
- The port to bind to.
- processRequest(Socket) - Method in class org.apache.cactus.integration.ant.container.MockHttpServer
- Processes an incoming request.
- protocol - Variable in class org.apache.cactus.integration.ant.container.AbstractContainer
- The protocol the container is using
R
- RESOURCE_PATH - Static variable in class org.apache.cactus.integration.ant.container.AbstractContainer
- The path under which the container resources are stored in the JAR.
- readFully(HttpURLConnection) - Static method in class org.apache.cactus.integration.ant.container.ContainerRunner
- Fully reads the input stream from the passed HTTP URL connection to prevent (harmless) server-side exception.
- readRequest(InputStream) - Method in class org.apache.cactus.integration.ant.container.MockHttpServer
- Reads the request and stores the HTTP method and request URI.
- response - Variable in class org.apache.cactus.integration.ant.container.MockHttpServer
- The content of the request to send back on any request.
- retrieveServerName(URL) - Method in class org.apache.cactus.integration.ant.container.ContainerRunner
- Retrieves the server name of the container.
- run() - Method in class org.apache.cactus.integration.ant.container.AbstractServerRun
- Sets up a listener socket and wait until we receive a request on it to stop the running server.
- run() - Method in class org.apache.cactus.integration.ant.container.MockHttpServer
- The main server thread.
- runningServerThread - Variable in class org.apache.cactus.integration.ant.container.AbstractServerRun
- Thread in which the server is running
S
- server - Variable in class org.apache.cactus.integration.ant.container.AbstractContainer
- The server (name or ip) the container is living on
- server - Variable in class org.apache.cactus.integration.ant.container.MockContainer
- The dummy server.
- server - Variable in class org.apache.cactus.integration.ant.container.TestContainerRunner
- The dummy HTTP server used to test the container runner.
- serverName - Variable in class org.apache.cactus.integration.ant.container.ContainerRunner
- The server name as returned in the 'Server' header of the server's HTTP response.
- setAntTaskFactory(AntTaskFactory) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- setAntTaskFactory(AntTaskFactory) - Method in interface org.apache.cactus.integration.ant.container.Container
- Sets the factory to use for creating Ant tasks.
- setAntTaskFactory(AntTaskFactory) - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- setAntTaskFactory(AntTaskFactory) - Method in class org.apache.cactus.integration.ant.container.MockContainer
- setAppend(boolean) - Method in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- Sets whether output of the container should be appended to an existing file, or the existing file should be truncated.
- setCheckInterval(long) - Method in class org.apache.cactus.integration.ant.container.ContainerRunner
- Sets the time interval to sleep between polling the container.
- setContainerClasspath(Path) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- setContainerClasspath(Path) - Method in interface org.apache.cactus.integration.ant.container.Container
- Sets additional classpath entries that will be added to the container classpath used to start the containers.
- setContainerClasspath(Path) - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- setContainerClasspath(Path) - Method in class org.apache.cactus.integration.ant.container.MockContainer
- setDeployableFile(DeployableFile) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- setDeployableFile(DeployableFile) - Method in interface org.apache.cactus.integration.ant.container.Container
- Sets the file that should be deployed to the container.
- setDeployableFile(DeployableFile) - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- setDeployableFile(DeployableFile) - Method in class org.apache.cactus.integration.ant.container.MockContainer
- setIf(String) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Sets the name of a property that must exist in the project if tests are to be run on the container.
- setJVMArgs(String) - Method in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- Sets the arguments for JVM.
- setLog(Log) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- setLog(Log) - Method in interface org.apache.cactus.integration.ant.container.Container
- Sets the log which the implementation should use.
- setLog(Log) - Method in class org.apache.cactus.integration.ant.container.ContainerRunner
- Sets the log to write to.
- setLog(Log) - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- setLog(Log) - Method in class org.apache.cactus.integration.ant.container.MockContainer
- setName(String) - Method in class org.apache.cactus.integration.ant.container.GenericContainer
- Sets the name of the container for logging purposes.
- setOutput(File) - Method in class org.apache.cactus.integration.ant.container.AbstractJavaContainer
- Sets the file to which output of the container should be written.
- setPort(int) - Method in class org.apache.cactus.integration.ant.container.GenericContainer
- Sets the port to which the container should listen.
- setProtocol(String) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Sets the protocol the container should use
- setResponse(String) - Method in class org.apache.cactus.integration.ant.container.MockHttpServer
- Sets the content of the request to send back on any request.
- setServer(String) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Sets the server (name or ip) to which the container is living.
- setShutDownTarget(String) - Method in class org.apache.cactus.integration.ant.container.GenericContainer
- Sets the target to call to stop the server.
- setShutDownWait(long) - Method in class org.apache.cactus.integration.ant.container.ContainerRunner
- Sets the time to wait after the container has been shut down.
- setStartUpTarget(String) - Method in class org.apache.cactus.integration.ant.container.GenericContainer
- Sets the target to call to start the server.
- setStartUpWait(long) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Sets the time to wait after the container has been started up.
- setSystemProperties(Environment.Variable[]) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- setSystemProperties(Environment.Variable[]) - Method in interface org.apache.cactus.integration.ant.container.Container
- Sets the system properties that will be passed to the JVM in which the server will execute.
- setSystemProperties(Environment.Variable[]) - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- setSystemProperties(Environment.Variable[]) - Method in class org.apache.cactus.integration.ant.container.MockContainer
- setTarget(String) - Method in class org.apache.cactus.integration.ant.container.GenericContainer.Hook
- Sets the target to call.
- setTimeout(long) - Method in class org.apache.cactus.integration.ant.container.ContainerRunner
- Sets the timeout after which to stop trying to call the container.
- setToDir(File) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Sets the directory to which the test reports should be written.
- setURL(URL) - Method in class org.apache.cactus.integration.ant.container.ContainerRunner
- Sets the HTTP/HTTPS URL that will be continuously pinged to check if the container is running.
- setUnless(String) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Sets the name of a property that must not exist in the project if tests are to be run on the container.
- setUp() - Method in class org.apache.cactus.integration.ant.container.TestAbstractContainer
- setUp() - Method in class org.apache.cactus.integration.ant.container.TestContainerRunner
- setUpListenerSocket() - Method in class org.apache.cactus.integration.ant.container.AbstractServerRun
- Sets up the listener socket.
- setupTempDirectory(File, String) - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Convenience method that creates a temporary directory or prepares the one passed by the user.
- shutDown() - Method in interface org.apache.cactus.integration.ant.container.Container
- Subclasses must implement this method to perform the actual task of shutting down the container.
- shutDown() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- shutDown() - Method in class org.apache.cactus.integration.ant.container.GenericContainer
- Shuts down the container by delegating to the shutdown hook.
- shutDown() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- shutDownCalled - Variable in class org.apache.cactus.integration.ant.container.MockContainer
- Whether the shutDown() method was called.
- shutDownContainer() - Method in class org.apache.cactus.integration.ant.container.ContainerRunner
- Method called by the task to perform the stopping of the container.
- shutDownHook - Variable in class org.apache.cactus.integration.ant.container.GenericContainer
- The hook that is called when the container should be shut down.
- shutDownWait - Variable in class org.apache.cactus.integration.ant.container.ContainerRunner
- The time to sleep after the container has shut down.
- sleep(long) - Method in class org.apache.cactus.integration.ant.container.ContainerRunner
- Pauses the current thread for the specified amount.
- startServer() - Method in class org.apache.cactus.integration.ant.container.AbstractServerRun
- Starts the server.
- startUp() - Method in interface org.apache.cactus.integration.ant.container.Container
- Subclasses must implement this method to perform the actual task of starting up the container.
- startUp() - Method in class org.apache.cactus.integration.ant.container.ContainerWrapper
- startUp() - Method in class org.apache.cactus.integration.ant.container.GenericContainer
- Starts up the container by delegating to the startup hook.
- startUp() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- startUpCalled - Variable in class org.apache.cactus.integration.ant.container.MockContainer
- Whether the startUp() method was called.
- startUpContainer() - Method in class org.apache.cactus.integration.ant.container.ContainerRunner
- Method called by the task to perform the startup of the container.
- startUpHook - Variable in class org.apache.cactus.integration.ant.container.GenericContainer
- The hook that is called when the container should be started.
- startUpWait - Variable in class org.apache.cactus.integration.ant.container.AbstractContainer
- The time to sleep after the container has started up.
- stop() - Method in class org.apache.cactus.integration.ant.container.MockHttpServer
- Stops the server.
- stopFlag - Variable in class org.apache.cactus.integration.ant.container.MockHttpServer
- Flag indicating whether the server should be stopped.
- stopServer() - Method in class org.apache.cactus.integration.ant.container.AbstractServerRun
- Stops the running server.
- suite() - Static method in class org.apache.cactus.integration.ant.container.TestAll
- systemProperties - Variable in class org.apache.cactus.integration.ant.container.AbstractContainer
- List of system properties to set in the container JVM.
T
- TestAbstractContainer - class org.apache.cactus.integration.ant.container.TestAbstractContainer.
- Unit tests for AbstractContainer.
- TestAbstractContainer() - Constructor for class org.apache.cactus.integration.ant.container.TestAbstractContainer
- TestAll - class org.apache.cactus.integration.ant.container.TestAll.
- Run all the unit tests for the container support classes.
- TestAll() - Constructor for class org.apache.cactus.integration.ant.container.TestAll
- TestContainerRunner - class org.apache.cactus.integration.ant.container.TestContainerRunner.
- Unit tests for ContainerRunner.
- TestContainerRunner() - Constructor for class org.apache.cactus.integration.ant.container.TestContainerRunner
- target - Variable in class org.apache.cactus.integration.ant.container.GenericContainer.Hook
- The target to call when the hook is executed.
- tasks - Variable in class org.apache.cactus.integration.ant.container.GenericContainer.Hook
- Ordered list of the contained tasks that should be invoked when the hook is executed.
- testConnectivity(URL) - Method in class org.apache.cactus.integration.ant.container.ContainerRunner
- Tests whether we are able to connect to the HTTP server identified by the specified URL.
- testCreateFilterChainOk() - Method in class org.apache.cactus.integration.ant.container.TestAbstractContainer
- Verify that the Ant filter chain is correctly configured to replace the "cactus.port" and "cactus.context" tokens.
- testIfCondition() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Tests whether the property necessary to run the tests in the container has been set.
- testIgnoreAlreadyRunning() - Method in class org.apache.cactus.integration.ant.container.TestContainerRunner
- Verifies that the runner correctly recognizes an already running container, and does not attempt to shut it down.
- testSetInvalidUrl() - Method in class org.apache.cactus.integration.ant.container.TestContainerRunner
- Verifies that an exception is thrown when setting the URL property to a non-HTTP URL.
- testShutDownWithoutUrl() - Method in class org.apache.cactus.integration.ant.container.TestContainerRunner
- Verifies that an exception is thrown if shutDownContainer() is invoked before a URL has been set.
- testStartUpFailure() - Method in class org.apache.cactus.integration.ant.container.TestContainerRunner
- Verifies that the runner throws an exception when a container doesn't return a success status.
- testStartUpShutDown() - Method in class org.apache.cactus.integration.ant.container.TestContainerRunner
- Verifies that the runner correctly starts and stops a well-behaved container.
- testStartUpTimeout() - Method in class org.apache.cactus.integration.ant.container.TestContainerRunner
- Verifies that the runner tries for a time approximately close to the timeout period to start up the container, and then fails if the container isn't responding.
- testStartUpWithoutUrl() - Method in class org.apache.cactus.integration.ant.container.TestContainerRunner
- Verifies that an exception is thrown if startUpContainer() is invoked before a URL has been set.
- testURL - Variable in class org.apache.cactus.integration.ant.container.ContainerRunner
- The URL that is continuously pinged to check if the container is running.
- testUnlessCondition() - Method in class org.apache.cactus.integration.ant.container.AbstractContainer
- Tests whether the property specified as the 'unless' condition has not been set.
- timeout - Variable in class org.apache.cactus.integration.ant.container.ContainerRunner
- Timeout in milliseconds after which to give up connecting to the container.
- toDir - Variable in class org.apache.cactus.integration.ant.container.AbstractContainer
- The directory to which the test reports should be written.
U
- unlessCondition - Variable in class org.apache.cactus.integration.ant.container.AbstractContainer
- Name of a property that must not exist in the project if tests are to be run on the container.
- unsupportedContainer(String, Exception) - Method in class org.apache.cactus.integration.ant.container.ContainerFactory
- Creates an exception that indicates that a specific container is not supported.
V
- verify() - Method in class org.apache.cactus.integration.ant.container.MockContainer
- Verify the mock object's state.
- verify() - Method in class org.apache.cactus.integration.ant.container.MockHttpServer
- Verifies whether the requests sent to the server matched those expected.
W
- writeResponse(OutputStream) - Method in class org.apache.cactus.integration.ant.container.MockHttpServer
- Writes the user-defined response to the socket output stream.
A C D E F G H I J L M N O P R S T U V W
|
|||||||||
| Home >> All >> org >> apache >> cactus >> integration >> ant >> [ container overview ] | PREV NEXT | ||||||||