org.jboss.test.cluster.httpsessionreplication
Class HttpSessionReplicationUnitTestCase

java.lang.Object
  extended byTestCase
      extended byorg.jboss.test.JBossTestCase (src) 
          extended byorg.jboss.test.JBossClusteredTestCase (src) 
              extended byorg.jboss.test.cluster.httpsessionreplication.HttpSessionReplicationUnitTestCase

public class HttpSessionReplicationUnitTestCase
extends JBossClusteredTestCase (src)

See Also:
org.jboss.test.cluster.httpsessionreplication, Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.JBossTestCase (src)
delegate, deploymentException, log
 
Constructor Summary
HttpSessionReplicationUnitTestCase(java.lang.String name)
           
 
Method Summary
 void getPropertiesFile()
          Reads in the properties file
static Test suite()
           
 void testApacheConnection()
          Tests connection to the Apache Server.
 void testHttpSessionReplication()
          Main method that deals with the Http Session Replication Test
 void testServerFound()
          This just checks the server is there...
 
Methods inherited from class org.jboss.test.JBossClusteredTestCase (src)
getAdaptors, getDeploySetup, getHttpURLs, getNamingURLs, getServers, initDelegate, setServerNames
 
Methods inherited from class org.jboss.test.JBossTestCase (src)
deploy, flushAuthCache, flushAuthCache, getBeanCount, getDeployerName, getDeployURL, getInitialContext, getIterationCount, getJndiInitFactory, getJndiURL, getLog, getResourceURL, getServer, getServerHost, getThreadCount, invoke, restartDBPool, sleep, undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSessionReplicationUnitTestCase

public HttpSessionReplicationUnitTestCase(java.lang.String name)
Method Detail

suite

public static Test suite()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testApacheConnection

public void testApacheConnection()
                          throws java.lang.Exception
Tests connection to the Apache Server. Note: We deal with just one Apache Server. We can bounce the different JBoss/Tomcat servers and Apache will loadbalance.

Throws:
java.lang.Exception

testHttpSessionReplication

public void testHttpSessionReplication()
                                throws java.lang.Exception
Main method that deals with the Http Session Replication Test

Throws:
java.lang.Exception

getPropertiesFile

public void getPropertiesFile()
Reads in the properties file


testServerFound

public void testServerFound()
                     throws java.lang.Exception
Description copied from class: JBossTestCase (src)
This just checks the server is there... so you should get at least one success! Also checks if an exception occurred during deployment, and throws any such exception from here.

Overrides:
testServerFound in class JBossClusteredTestCase (src)
Throws:
java.lang.Exception