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

Quick Search    Search Deep

org.activemq
Class JmsTopicRequestorTest  view JmsTopicRequestorTest download JmsTopicRequestorTest.java

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

public class JmsTopicRequestorTest
extends junit.framework.TestCase
implements javax.jms.MessageListener

Version:
$Revision: 1.1.1.1 $

Field Summary
protected  javax.jms.Topic destination
           
protected static int MESSAGE_COUNT
           
protected  javax.jms.TopicConnection requestorConnection
           
protected  javax.jms.Connection serverConnection
           
protected  javax.jms.MessageProducer serverProducer
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
JmsTopicRequestorTest()
           
 
Method Summary
 void onMessage(javax.jms.Message msg)
           
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 testRequests()
           
 
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

protected static final int MESSAGE_COUNT
See Also:
Constant Field Values

serverConnection

protected javax.jms.Connection serverConnection

requestorConnection

protected javax.jms.TopicConnection requestorConnection

serverProducer

protected javax.jms.MessageProducer serverProducer

destination

protected javax.jms.Topic destination
Constructor Detail

JmsTopicRequestorTest

public JmsTopicRequestorTest()
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.


onMessage

public void onMessage(javax.jms.Message msg)
Specified by:
onMessage in interface javax.jms.MessageListener

testRequests

public void testRequests()
                  throws java.lang.Exception