java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.activemq.advisories.ConnectionAdvisorTest
- All Implemented Interfaces:
- ConnectionAdvisoryEventListener, junit.framework.Test
- public class ConnectionAdvisorTest
- extends junit.framework.TestCase
- implements ConnectionAdvisoryEventListener
ConnectionAdvisorTest
| Fields inherited from class junit.framework.TestCase |
|
|
Method Summary |
void |
onEvent(ConnectionAdvisoryEvent event)
called when a MessageConnection 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.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 |
fac
private org.activemq.ActiveMQConnectionFactory fac
connection
private javax.jms.Connection connection
started
private SynchronizedBoolean started
ConnectionAdvisorTest
public ConnectionAdvisorTest()
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(ConnectionAdvisoryEvent event)
- Description copied from interface:
ConnectionAdvisoryEventListener
- called when a MessageConnection starts/stops
- Specified by:
onEvent in interface ConnectionAdvisoryEventListener