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

Quick Search    Search Deep

org.activemq.advisories
Class ConsumerAdvisorTest  view ConsumerAdvisorTest download ConsumerAdvisorTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.activemq.advisories.ConsumerAdvisorTest
All Implemented Interfaces:
ConsumerAdvisoryEventListener, junit.framework.Test

public class ConsumerAdvisorTest
extends junit.framework.TestCase
implements ConsumerAdvisoryEventListener

ConsumerAdvisorTest


Field Summary
private  javax.jms.Connection connection
           
private  javax.jms.Destination destination
           
private  java.lang.String destinationName
           
private  javax.jms.Session session
           
private  SynchronizedBoolean started
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ConsumerAdvisorTest()
           
 
Method Summary
 void onEvent(ConsumerAdvisoryEvent event)
          called when a MessageConsumer starts/stops
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 testAdvisories()
           
 
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

session

private javax.jms.Session session

destination

private javax.jms.Destination destination

destinationName

private java.lang.String destinationName

started

private SynchronizedBoolean started
Constructor Detail

ConsumerAdvisorTest

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


testAdvisories

public void testAdvisories()
                    throws java.lang.Exception

onEvent

public void onEvent(ConsumerAdvisoryEvent event)
Description copied from interface: ConsumerAdvisoryEventListener
called when a MessageConsumer starts/stops

Specified by:
onEvent in interface ConsumerAdvisoryEventListener