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
Methods inherited from interface junit.framework.Test |
countTestCases, run |
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.