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

Quick Search    Search Deep

org.activemq.transport.activeio
Class ExceptionListenerTest  view ExceptionListenerTest download ExceptionListenerTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.activemq.test.TestSupport
              extended byorg.activemq.transport.activeio.ExceptionListenerTest
All Implemented Interfaces:
javax.jms.ExceptionListener, junit.framework.Test
Direct Known Subclasses:
ExceptionListenerTest.NIOExceptionListenerTest, ExceptionListenerTest.VMPipeExceptionListenerTest

public class ExceptionListenerTest
extends org.activemq.test.TestSupport
implements javax.jms.ExceptionListener

Version:
$Revision: 1.1.1.1 $

Nested Class Summary
static class ExceptionListenerTest.NIOExceptionListenerTest
           
static class ExceptionListenerTest.VMPipeExceptionListenerTest
           
 
Field Summary
protected  javax.jms.Connection connection
           
protected  javax.jms.JMSException exception
           
 
Fields inherited from class org.activemq.test.TestSupport
connectionFactory, log, topic
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ExceptionListenerTest()
           
 
Method Summary
protected  void breakTransport()
           
protected  org.activemq.ActiveMQConnectionFactory createConnectionFactory()
           
protected  java.lang.String getURL()
           
 void onException(javax.jms.JMSException e)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
static junit.framework.Test suite()
           
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testFailingConnection()
           
 
Methods inherited from class org.activemq.test.TestSupport
assertEquals, assertEquals, assertEquals, assertTextMessageEqual, assertTextMessagesEqual, assertTextMessagesEqual, createConnection, 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

protected javax.jms.Connection connection

exception

protected javax.jms.JMSException exception
Constructor Detail

ExceptionListenerTest

public ExceptionListenerTest()
Method Detail

testFailingConnection

public void testFailingConnection()
                           throws java.lang.Exception

onException

public void onException(javax.jms.JMSException e)
Specified by:
onException in interface javax.jms.ExceptionListener

breakTransport

protected void breakTransport()
                       throws java.io.IOException,
                              javax.jms.JMSException

createConnectionFactory

protected org.activemq.ActiveMQConnectionFactory createConnectionFactory()
                                                                  throws java.lang.Exception

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.


getURL

protected java.lang.String getURL()

suite

public static junit.framework.Test suite()