org.exolab.jmscts.core
Class AbstractConnectionTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.exolab.jmscts.core.JMSTestCase
                    |
                    +--org.exolab.jmscts.core.AbstractConnectionFactoryTestCase
                          |
                          +--org.exolab.jmscts.core.AbstractConnectionTestCase
All Implemented Interfaces:
ConnectionFactoryTestCase, ConnectionTestCase, JMSTest, junit.framework.Test
Direct Known Subclasses:
AbstractSessionTestCase, ClientIdentifierTest, ConnectionCloseTest, MetaDataTest, StopStartTest

public abstract class AbstractConnectionTestCase
extends AbstractConnectionFactoryTestCase
implements ConnectionTestCase

This class provides a default implementation of the ConnectionTestCase interface.

Version:
$Revision: 1.4 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson
See Also:
ConnectionTestCase, ConnectionTestRunner

Constructor Summary
AbstractConnectionTestCase(java.lang.String name)
          Construct an instance of this class for a specific test case.
 
Method Summary
 boolean setClientID()
          Returns true if the client identifier should be set on the connection.
 boolean startConnection()
          Returns if the connection should be started prior to running the test.
 
Methods inherited from class org.exolab.jmscts.core.AbstractConnectionFactoryTestCase
getConnectionFactoryTypes
 
Methods inherited from class org.exolab.jmscts.core.JMSTestCase
getContext, getRequirements, setContext, share
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 
Methods inherited from interface org.exolab.jmscts.core.ConnectionFactoryTestCase
getConnectionFactoryTypes
 
Methods inherited from interface org.exolab.jmscts.core.JMSTest
getContext, setContext, share
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Constructor Detail

AbstractConnectionTestCase

public AbstractConnectionTestCase(java.lang.String name)
Construct an instance of this class for a specific test case.
Parameters:
name - the name of test case
Method Detail

startConnection

public boolean startConnection()
Returns if the connection should be started prior to running the test.
Specified by:
startConnection in interface ConnectionTestCase
Returns:
this implementation always returns true

setClientID

public boolean setClientID()
Returns true if the client identifier should be set on the connection. This is only applicable for TopicConnection instances, and will be ignore for QueueConnection instances.
Specified by:
setClientID in interface ConnectionTestCase
Returns:
this implementation always returns true.


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.