Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.integration.ant.container » [javadoc | source]
org.apache.cactus.integration.ant.container
public final class: TestContainerRunner [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.cactus.integration.ant.container.TestContainerRunner
Unit tests for ContainerRunner .
Method from org.apache.cactus.integration.ant.container.TestContainerRunner Summary:
setUp,   testIgnoreAlreadyRunning,   testSetInvalidUrl,   testShutDownWithoutUrl,   testStartUpFailure,   testStartUpShutDown,   testStartUpTimeout,   testStartUpWithoutUrl
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.integration.ant.container.TestContainerRunner Detail:
 protected  void setUp() throws Exception 
 public  void testIgnoreAlreadyRunning() throws Exception 
    Verifies that the runner correctly recognizes an already running container, and does not attempt to shut it down.
 public  void testSetInvalidUrl() throws Exception 
    Verifies that an exception is thrown when setting the URL property to a non-HTTP URL.
 public  void testShutDownWithoutUrl() throws Exception 
    Verifies that an exception is thrown if shutDownContainer() is invoked before a URL has been set.
 public  void testStartUpFailure() throws Exception 
    Verifies that the runner throws an exception when a container doesn't return a success status.
 public  void testStartUpShutDown() throws Exception 
    Verifies that the runner correctly starts and stops a well-behaved container.
 public  void testStartUpTimeout() throws Exception 
    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.
 public  void testStartUpWithoutUrl() throws Exception 
    Verifies that an exception is thrown if startUpContainer() is invoked before a URL has been set.