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

Quick Search    Search Deep

org.activemq.usecases
Class DeadLetterTest  view DeadLetterTest download DeadLetterTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.activemq.TestSupport
              extended byorg.activemq.usecases.DeadLetterTest
All Implemented Interfaces:
junit.framework.Test

public class DeadLetterTest
extends org.activemq.TestSupport

Version:
$Revision: 1.1.1.1 $

Field Summary
private  javax.jms.Connection connection
           
private  javax.jms.MessageConsumer consumer
           
private  int deliveryMode
           
private  org.activemq.message.ActiveMQDestination destination
           
private  boolean durableSubscriber
           
private static int MESSAGE_COUNT
           
private  javax.jms.MessageProducer producer
           
private  javax.jms.Session session
           
private static long TIME_TO_LIVE
           
 
Fields inherited from class org.activemq.TestSupport
connectionFactory, log, topic
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
DeadLetterTest()
           
 
Method Summary
protected  void doTest()
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testDurableQueueMessageExpiration()
           
 void testDurableTopicMessageExpiration()
           
 void testTransientQueueMessageExpiration()
           
 
Methods inherited from class org.activemq.TestSupport
assertTextMessagesEqual, createConnection, createConnectionFactory, createDestination, createMessage, getConnectionFactory, getConsumerSubject, getProducerSubject, getSubject, recursiveDelete, removeMessageStore
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MESSAGE_COUNT

private static final int MESSAGE_COUNT
See Also:
Constant Field Values

TIME_TO_LIVE

private static final long TIME_TO_LIVE
See Also:
Constant Field Values

connection

private javax.jms.Connection connection

session

private javax.jms.Session session

consumer

private javax.jms.MessageConsumer consumer

producer

private javax.jms.MessageProducer producer

destination

private org.activemq.message.ActiveMQDestination destination

deliveryMode

private int deliveryMode

durableSubscriber

private boolean durableSubscriber
Constructor Detail

DeadLetterTest

public DeadLetterTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


tearDown

protected void tearDown()
                 throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.


doTest

protected void doTest()
               throws java.lang.Exception

testDurableTopicMessageExpiration

public void testDurableTopicMessageExpiration()
                                       throws java.lang.Exception

testTransientQueueMessageExpiration

public void testTransientQueueMessageExpiration()
                                         throws java.lang.Exception

testDurableQueueMessageExpiration

public void testDurableQueueMessageExpiration()
                                       throws java.lang.Exception