org.jboss.test
Class JBossClusteredTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jboss.test.AbstractTestCase
              extended by org.jboss.test.AbstractTestCaseWithSetup
                  extended by org.jboss.test.JBossTestCase
                      extended by org.jboss.test.JBossClusteredTestCase
All Implemented Interfaces:
junit.framework.Test

public class JBossClusteredTestCase
extends JBossTestCase

Derived implementation of JBossTestCase for cluster testing.

Version:
$Revision: 65064 $
Author:
Sacha Labourey., Scott.Stark@jboss.org
See Also:
JBossTestCase

Field Summary
 
Fields inherited from class org.jboss.test.JBossTestCase
delegate, deploymentException, log
 
Constructor Summary
JBossClusteredTestCase(String name)
           
 
Method Summary
protected  void deploy(MBeanServerConnection server, String name)
           
 MBeanServerConnection[] getAdaptors()
           
static AbstractTestDelegate getDelegate(Class clazz)
          Overriden to return JBossTestServices as the test delegate.
static junit.framework.Test getDeploySetup(Class clazz, String jarNames)
           
static junit.framework.Test getDeploySetup(junit.framework.Test test, String jarNames)
           
 String[] getHANamingURLs()
           
 String[] getHttpURLs()
           
 String[] getNamingURLs()
           
 String[] getServers()
           
protected  void redeploy(MBeanServerConnection server, String name)
           
 void setServerNames(String[] snames)
          anil
protected  void setUp()
          Create a delegate by calling AbstractTestDelegate.getDelegate(clazz) to allow for a test specific delegate.
 void testServerFound()
           
protected  void undeploy(MBeanServerConnection server, String name)
           
 
Methods inherited from class org.jboss.test.JBossTestCase
deploy, flushAuthCache, flushAuthCache, getBeanCount, getDeployerName, getDeploySetup, getDeployURL, getInitialContext, getIterationCount, getJndiInitFactory, getJndiURL, getLog, getResourceURL, getServer, getServerHost, getThreadCount, invoke, redeploy, resetDelegate, restartDBPool, serverFound, sleep, tearDown, undeploy
 
Methods inherited from class org.jboss.test.AbstractTestCaseWithSetup
enableTrace, getDelegate, resumeSecurity, suite, suspendSecurity
 
Methods inherited from class org.jboss.test.AbstractTestCase
assertEmpty, assertEmpty, assertEmpty, assertEquals, assertEquals, assertEquals, assertEquals, assertInstanceOf, assertInstanceOf, checkDeepThrowable, checkDeepThrowableRethrow, checkThrowable, checkThrowableRethrow, configureLogging, deserialize, failure, findResource, getResource, serialize, serializeDeserialize
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JBossClusteredTestCase

public JBossClusteredTestCase(String name)
Method Detail

getDelegate

public static AbstractTestDelegate getDelegate(Class clazz)
                                        throws Exception
Overriden to return JBossTestServices as the test delegate.

Throws:
Exception

setUp

protected void setUp()
              throws Exception
Description copied from class: JBossTestCase
Create a delegate by calling AbstractTestDelegate.getDelegate(clazz) to allow for a test specific delegate. This method then delegates to the AbstractTestDelegate.setUp method.

Overrides:
setUp in class JBossTestCase
Throws:
Exception

testServerFound

public void testServerFound()
                     throws Exception
Throws:
Exception

getAdaptors

public MBeanServerConnection[] getAdaptors()
                                    throws Exception
Throws:
Exception

getServers

public String[] getServers()
                    throws Exception
Throws:
Exception

getNamingURLs

public String[] getNamingURLs()
                       throws Exception
Throws:
Exception

getHANamingURLs

public String[] getHANamingURLs()
                         throws Exception
Throws:
Exception

getHttpURLs

public String[] getHttpURLs()
                     throws Exception
Throws:
Exception

deploy

protected void deploy(MBeanServerConnection server,
                      String name)
               throws Exception
Throws:
Exception

redeploy

protected void redeploy(MBeanServerConnection server,
                        String name)
                 throws Exception
Throws:
Exception

undeploy

protected void undeploy(MBeanServerConnection server,
                        String name)
                 throws Exception
Throws:
Exception

getDeploySetup

public static junit.framework.Test getDeploySetup(junit.framework.Test test,
                                                  String jarNames)
                                           throws Exception
Throws:
Exception

getDeploySetup

public static junit.framework.Test getDeploySetup(Class clazz,
                                                  String jarNames)
                                           throws Exception
Throws:
Exception

setServerNames

public void setServerNames(String[] snames)
                    throws Exception
anil

Throws:
Exception


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.