JBoss Test 1.1.9.GA-redhat-2

org.jboss.test
Class JBossJMSTestCase

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.JBossJMSTestCase
All Implemented Interfaces:
junit.framework.Test

public class JBossJMSTestCase
extends JBossTestCase

A Base class with abstraction on creating and deleting JMS destinations.


Field Summary
 
Fields inherited from class org.jboss.test.JBossTestCase
delegate, deploymentException, log
 
Constructor Summary
JBossJMSTestCase(String name)
          Constructor for JMSTestCase object
 
Method Summary
 void createQueue(String name)
          Create a JMS Queue.
 void createTopic(String name)
          Create a JMS Topic.
 void deleteQueue(String name)
          Delete a JMS Queue.
 void deleteTopic(String name)
          Delete a JMS Topic.
protected static void deployQueue(String name, TestRole... securityConfig)
           
protected static void deployTopic(String name, TestRole... securityConfig)
           
protected  void setUp()
          Create the Admin object to perform all JMS adminsitrative functions in a JMS provider-independent manner
protected  void tearDown()
          This method then delegates to the AbstractTestDelegate.tearDown method.
protected static void undeployDestinations()
           
protected static void undeployQueue(String queue)
           
protected static void undeployTopic(String topic)
           
 
Methods inherited from class org.jboss.test.JBossTestCase
deploy, flushAuthCache, flushAuthCache, getBeanCount, getDelegate, getDeployerName, getDeploySetup, getDeploySetup, getDeploySetup, getDeployURL, getInitialContext, getIterationCount, getJndiInitFactory, getJndiURL, getLog, getResourceURL, getServer, getServerHost, getThreadCount, invoke, redeploy, resetDelegate, restartDBPool, serverFound, sleep, 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

JBossJMSTestCase

public JBossJMSTestCase(String name)
Constructor for JMSTestCase object

Parameters:
name - test case name
Method Detail

deployTopic

protected static void deployTopic(String name,
                                  TestRole... securityConfig)
                           throws Exception
Throws:
Exception

deployQueue

protected static void deployQueue(String name,
                                  TestRole... securityConfig)
                           throws Exception
Throws:
Exception

setUp

protected void setUp()
              throws Exception
Create the Admin object to perform all JMS adminsitrative functions in a JMS provider-independent manner

Overrides:
setUp in class JBossTestCase
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Description copied from class: JBossTestCase
This method then delegates to the AbstractTestDelegate.tearDown method.

Overrides:
tearDown in class JBossTestCase
Throws:
Exception

undeployDestinations

protected static void undeployDestinations()
                                    throws Exception
Throws:
Exception

undeployQueue

protected static void undeployQueue(String queue)
                             throws Exception
Throws:
Exception

undeployTopic

protected static void undeployTopic(String topic)
                             throws Exception
Throws:
Exception

createQueue

public void createQueue(String name)
                 throws Exception
Create a JMS Queue. The Queue is created dynamically, in a JMS provider-specific manner, according to the instance of the Admin interface currently in use.

Parameters:
name - The name of the Queue to be created.
Throws:
Exception

deleteQueue

public void deleteQueue(String name)
Delete a JMS Queue. The Queue is deleted dynamically, in a JMS provider-specific manner, according to the instance of the Admin interface currently in use.

Parameters:
name - The name of the Queue to be deleted.

createTopic

public void createTopic(String name)
                 throws Exception
Create a JMS Topic. The Topic is created dynamically, in a JMS provider-specific manner, according to the instance of the Admin interface currently in use.

Parameters:
name - The name of the Topic to be created.
Throws:
Exception

deleteTopic

public void deleteTopic(String name)
                 throws Exception
Delete a JMS Topic. The Topic is deleted dynamically, in a JMS provider-specific manner, according to the instance of the Admin interface currently in use.

Parameters:
name - The name of the Topic to be deleted.
Throws:
Exception

JBoss Test 1.1.9.GA-redhat-2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.