Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.activemq
Class TestSupport  view TestSupport download TestSupport.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.activemq.TestSupport
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
JmsSendReceiveTestSupport, org.activemq.test.JmsXATransactionTestSupport

public class TestSupport
extends junit.framework.TestCase

Useful base class for unit test cases

Version:
$Revision: 1.1.1.1 $

Field Summary
protected  ActiveMQConnectionFactory connectionFactory
           
protected  org.apache.commons.logging.Log log
           
protected  boolean topic
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestSupport()
           
TestSupport(java.lang.String name)
           
 
Method Summary
protected  void assertTextMessagesEqual(java.lang.String messsage, javax.jms.Message[] firstSet, javax.jms.Message[] secondSet)
           
protected  javax.jms.Connection createConnection()
          Factory method to create a new connection
protected  ActiveMQConnectionFactory createConnectionFactory()
           
protected  javax.jms.Destination createDestination(java.lang.String subject)
           
protected  org.activemq.message.ActiveMQMessage createMessage()
           
 ActiveMQConnectionFactory getConnectionFactory()
           
protected  java.lang.String getConsumerSubject()
           
protected  java.lang.String getProducerSubject()
           
protected  java.lang.String getSubject()
           
static void recursiveDelete(java.io.File f)
           
static void removeMessageStore()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log

connectionFactory

protected ActiveMQConnectionFactory connectionFactory

topic

protected boolean topic
Constructor Detail

TestSupport

public TestSupport()

TestSupport

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

createMessage

protected org.activemq.message.ActiveMQMessage createMessage()

createDestination

protected javax.jms.Destination createDestination(java.lang.String subject)

assertTextMessagesEqual

protected void assertTextMessagesEqual(java.lang.String messsage,
                                       javax.jms.Message[] firstSet,
                                       javax.jms.Message[] secondSet)
                                throws javax.jms.JMSException

createConnectionFactory

protected ActiveMQConnectionFactory createConnectionFactory()
                                                     throws java.lang.Exception

createConnection

protected javax.jms.Connection createConnection()
                                         throws java.lang.Exception
Factory method to create a new connection


getConnectionFactory

public ActiveMQConnectionFactory getConnectionFactory()
                                               throws java.lang.Exception

getConsumerSubject

protected java.lang.String getConsumerSubject()

getProducerSubject

protected java.lang.String getProducerSubject()

getSubject

protected java.lang.String getSubject()

recursiveDelete

public static void recursiveDelete(java.io.File f)

removeMessageStore

public static void removeMessageStore()