org.exolab.jmscts.core
Interface MessageTestCase

All Superinterfaces:
ConnectionFactoryTestCase, ConnectionTestCase, JMSTest, SessionTestCase, junit.framework.Test
All Known Subinterfaces:
SendReceiveTestCase
All Known Implementing Classes:
AbstractMessageTestCase

public interface MessageTestCase
extends SessionTestCase

This interface enables generic message test cases to be run for each JMS message type.

MessageTestRunner uses this to set the message to test against prior to running the test case.

Version:
$Revision: 1.7 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson
See Also:
MessageTestRunner, MessagePopulator

Method Summary
 MessagePopulator getMessagePopulator()
          Get the message populator.
 MessageTypes getMessageTypes()
          Get the message types to test against
 boolean shouldCreateMessage()
          Determines if messages should be pre-created and populated for the test.
 boolean startConnection()
          Returns if the connection should be started prior to running the test.
 
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

getMessageTypes

public MessageTypes getMessageTypes()
Get the message types to test against
Returns:
the message types to test against

shouldCreateMessage

public boolean shouldCreateMessage()
Determines if messages should be pre-created and populated for the test.
Returns:
true, if messages should be pre-created and populated for the test

getMessagePopulator

public MessagePopulator getMessagePopulator()
Get the message populator. This may be used to populate a message with data prior to JMSTest.setContext(org.exolab.jmscts.core.TestContext) being invoked.
Returns:
the message populator, or null, if no message population is required

startConnection

public boolean startConnection()
Returns if the connection should be started prior to running the test.
Specified by:
startConnection in interface ConnectionTestCase
Returns:
true if the connection should be started, false if it should be stopped


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