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

Quick Search    Search Deep

org.activemq
Class JmsCreateConsumerInOnMessageTest  view JmsCreateConsumerInOnMessageTest download JmsCreateConsumerInOnMessageTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.activemq.test.TestSupport
              extended byorg.activemq.JmsCreateConsumerInOnMessageTest
All Implemented Interfaces:
javax.jms.MessageListener, junit.framework.Test

public class JmsCreateConsumerInOnMessageTest
extends org.activemq.test.TestSupport
implements javax.jms.MessageListener

Version:
$Revision: 1.1.1.1 $

Field Summary
private  javax.jms.Connection connection
           
private  javax.jms.MessageConsumer consumer
           
private  javax.jms.Session consumerSession
           
private  java.lang.Object lock
           
private  javax.jms.MessageProducer producer
           
private  javax.jms.Session publisherSession
           
private  javax.jms.MessageConsumer testConsumer
           
private  javax.jms.Topic topic
           
 
Fields inherited from class org.activemq.test.TestSupport
connectionFactory, log
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
JmsCreateConsumerInOnMessageTest()
           
 
Method Summary
 void onMessage(javax.jms.Message message)
          Use the asynchronous subscription mechanism
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 testCreateConsumer()
           
 
Methods inherited from class org.activemq.test.TestSupport
assertEquals, assertEquals, assertEquals, assertTextMessageEqual, assertTextMessagesEqual, assertTextMessagesEqual, createConnection, createConnectionFactory, createDestination, createMessage, getConnectionFactory, getConsumerSubject, getProducerSubject, getSubject
 
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

connection

private javax.jms.Connection connection

publisherSession

private javax.jms.Session publisherSession

consumerSession

private javax.jms.Session consumerSession

consumer

private javax.jms.MessageConsumer consumer

testConsumer

private javax.jms.MessageConsumer testConsumer

producer

private javax.jms.MessageProducer producer

topic

private javax.jms.Topic topic

lock

private java.lang.Object lock
Constructor Detail

JmsCreateConsumerInOnMessageTest

public JmsCreateConsumerInOnMessageTest()
Method Detail

testCreateConsumer

public void testCreateConsumer()
                        throws java.lang.Exception

onMessage

public void onMessage(javax.jms.Message message)
Use the asynchronous subscription mechanism

Specified by:
onMessage in interface javax.jms.MessageListener

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.