org.exolab.jmscts.core
Interface SendReceiveTestCase

All Superinterfaces:
ConnectionFactoryTestCase, ConnectionTestCase, JMSTest, MessageTestCase, SessionTestCase, junit.framework.Test
All Known Implementing Classes:
AbstractSendReceiveTestCase

public interface SendReceiveTestCase
extends MessageTestCase

This interface enables generic send/receive message test cases to be run for each JMS message, session and synchronous/asynchronous processing type.

Version:
$Revision: 1.2 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson
See Also:
SendReceiveTestRunner, DeliveryType

Method Summary
 DeliveryTypes getDeliveryTypes()
          Return the delivery types to run this test case against
 java.lang.String[] getDestinations()
          Returns the list of destination names used by this test case.
 boolean getDurableOnly()
          Returns true if this test case only supports durable topic subscribers.
 void setDestinations(java.util.Map destinations)
          Sets the pre-created destinations corresponding to those returned by getDestinations().
 
Methods inherited from interface org.exolab.jmscts.core.MessageTestCase
getMessagePopulator, getMessageTypes, shouldCreateMessage, startConnection
 
Methods inherited from interface org.exolab.jmscts.core.SessionTestCase
getAckTypes
 
Methods inherited from interface org.exolab.jmscts.core.ConnectionTestCase
setClientID
 
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
 

Method Detail

getDestinations

public java.lang.String[] getDestinations()
Returns the list of destination names used by this test case. These are used to pre-create destinations prior to running the test case.
Returns:
the list of destinations used by this test case, or null, if no destinations need to be pre-created.

setDestinations

public void setDestinations(java.util.Map destinations)
Sets the pre-created destinations corresponding to those returned by getDestinations().
Parameters:
destinations - a map of Destination instances keyed on their name

getDeliveryTypes

public DeliveryTypes getDeliveryTypes()
Return the delivery types to run this test case against
Returns:
the delivery types to run this test case against

getDurableOnly

public boolean getDurableOnly()
Returns true if this test case only supports durable topic subscribers. If false, it supports both durable and non-durable topic subscribers. Note that this does not prevent the test case from supporting queue consumers or browsers.
Returns:
true if the test only supports durable topic subscribers


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