Java Doc for JMSTestModule.java in  » Testing » mockrunner-0.4 » com » mockrunner » jms » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » mockrunner 0.4 » com.mockrunner.jms 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.mockrunner.jms.JMSTestModule

JMSTestModule
public class JMSTestModule (Code)
Module for JMS tests. Note that all indices are zero based.
Note for JMS 1.1: If you use MockQueueConnectionFactory for creating your connections and sessions, you have to use the methods with Queue in their name. Same with MockTopicConnectionFactory . The methods without Queue and Topic in the method name are for connections and sessions that were created using the com.mockrunner.mock.jms.MockConnectionFactory . com.mockrunner.mock.jms.MockConnectionFactory also implements the QueueConnectionFactory and TopicConnectionFactory interfaces and can be used to create queue and topic connections as well as generic JMS 1.1 connections. It is recommended to use com.mockrunner.mock.jms.MockQueueConnectionFactory if you only use queues and com.mockrunner.mock.jms.MockTopicConnectionFactory if you only use topics and are not interested in having one factory for both. It is possible to create a MockQueueConnection or a MockTopicConnection using the com.mockrunner.mock.jms.MockConnectionFactory . However, the Queue methods (e.g. JMSTestModule.verifyAllQueueReceiversClosed ) only work, if you use MockQueueConnectionFactory and the Topic methods (e.g. JMSTestModule.verifyCreatedTopicMapMessageNotAcknowledged ) only work, if you use MockTopicConnectionFactory .



Constructor Summary
public  JMSTestModule(JMSMockObjectFactory mockFactory)
    

Method Summary
public  ConfigurationManagergetConfigurationManager()
     Returns the ConfigurationManager .
public  MockConnectiongetCurrentConnection()
     Returns the current MockConnection based on its index or null if no connection was created.
public  ListgetCurrentMessageListFromQueue(String name)
     Returns the list of messages that are currently present in the queue or null if no such queue exists.
public  ListgetCurrentMessageListFromTemporaryQueue(int indexOfSession, int indexOfQueue)
     Returns the list of messages that are currently present in the temporary queue or null if no such queue exists.
public  ListgetCurrentMessageListFromTemporaryTopic(int indexOfSession, int indexOfTopic)
     Returns the list of messages that are currently present in the temporary topic or null if no such topic exists.
public  ListgetCurrentMessageListFromTopic(String name)
     Returns the list of messages that are currently present in the topic or null if no such topic exists.
public  MockQueueConnectiongetCurrentQueueConnection()
     Returns the current MockQueueConnection based on its index or null if no queue connection was created.
public  MockTopicConnectiongetCurrentTopicConnection()
     Returns the current MockTopicConnection based on its index or null if no topic connection was created.
public  DestinationManagergetDestinationManager()
     Returns the DestinationManager .
public  MessageManagergetMessageManager(int indexOfSession)
     Returns the MessageManager for the specified session or null if the session does not exist.
public  MockQueuegetQueue(String name)
     Returns the MockQueue with the specified name or null if no such queue exists.
public  MessageManagergetQueueMessageManager(int indexOfSession)
     Returns the MessageManager for the specified session or null if the session does not exist.
public  MockQueueSessiongetQueueSession(int indexOfSession)
     Returns the MockQueueSession for the specified index or null if the session does not exist.
public  ListgetQueueSessionList()
     Returns the list of MockQueueSession objects.
public  QueueTransmissionManagergetQueueTransmissionManager(int indexOfSession)
     Returns the QueueTransmissionManager for the specified session or null if the session does not exist.
public  TransmissionManagerWrappergetQueueTransmissionManagerWrapper(int indexOfSession)
     Returns the TransmissionManagerWrapper for the specified session or null if the session does not exist.
public  ListgetReceivedMessageListFromQueue(String name)
     Returns the list of messages that were received by the queue or null if no such queue exists.
public  ListgetReceivedMessageListFromTemporaryQueue(int indexOfSession, int indexOfQueue)
     Returns the list of messages that were received by the temporary queue or null if no such queue exists.
public  ListgetReceivedMessageListFromTemporaryTopic(int indexOfSession, int indexOfTopic)
     Returns the list of messages that were received by the temporary topic or null if no such topic exists.
public  ListgetReceivedMessageListFromTopic(String name)
     Returns the list of messages that were received by the topic or null if no such topic exists.
public  MockSessiongetSession(int indexOfSession)
     Returns the MockSession for the specified index or null if the session does not exist.
public  ListgetSessionList()
     Returns the list of MockSession objects.
public  MockTemporaryQueuegetTemporaryQueue(int indexOfSession, int indexOfQueue)
     Returns the MockTemporaryQueue with the specified index for the specified session.
public  ListgetTemporaryQueueList(int indexOfSession)
     Returns the list of MockTemporaryQueue objects for the specified session.
public  MockTemporaryTopicgetTemporaryTopic(int indexOfSession, int indexOfTopic)
     Returns the MockTemporaryTopic with the specified index for the specified session.
public  ListgetTemporaryTopicList(int indexOfSession)
     Returns the list of MockTemporaryTopic objects for the specified session.
public  MockTopicgetTopic(String name)
     Returns the MockTopic with the specified name or null if no such topic exists.
public  MessageManagergetTopicMessageManager(int indexOfSession)
     Returns the MessageManager for the specified session or null if the session does not exist.
public  MockTopicSessiongetTopicSession(int indexOfSession)
     Returns the MockTopicSession for the specified index or null if the session does not exist.
public  ListgetTopicSessionList()
     Returns the list of MockTopicSession objects.
public  TopicTransmissionManagergetTopicTransmissionManager(int indexOfSession)
     Returns the TopicTransmissionManager for the specified session or null if the session does not exist.
public  TransmissionManagerWrappergetTopicTransmissionManagerWrapper(int indexOfSession)
     Returns the TransmissionManagerWrapper for the specified session or null if the session does not exist.
public  TransmissionManagerWrappergetTransmissionManager(int indexOfSession)
    
public  TransmissionManagerWrappergetTransmissionManagerWrapper(int indexOfSession)
     Returns the TransmissionManagerWrapper for the specified session or null if the session does not exist.
public  voidregisterTestMessageListenerForQueue(String queueName, MessageListener listener)
     Creates a new connection and uses it for creating a new session and receiver. Registers the specified listener.
public  voidregisterTestMessageListenerForQueue(MockConnection connection, String queueName, MessageListener listener)
     Creates a new session and receiver using the specified connection and registers the specified listener.
public  voidregisterTestMessageListenerForQueue(MockConnection connection, String queueName, boolean transacted, int acknowledgeMode, MessageListener listener)
     Creates a new session and receiver using the specified connection and registers the specified listener.
public  voidregisterTestMessageListenerForQueue(MockConnection connection, String queueName, boolean transacted, int acknowledgeMode, String messageSelector, MessageListener listener)
     Creates a new session and receiver using the specified connection and registers the specified listener.
public  voidregisterTestMessageListenerForTopic(String topicName, MessageListener listener)
     Creates a new connection and uses it for creating a new session and subscriber. Registers the specified listener.
public  voidregisterTestMessageListenerForTopic(MockConnection connection, String topicName, MessageListener listener)
     Creates a new session and subscriber using the specified connection and registers the specified listener.
public  voidregisterTestMessageListenerForTopic(MockConnection connection, String topicName, boolean transacted, int acknowledgeMode, MessageListener listener)
     Creates a new session and subscriber using the specified connection and registers the specified listener.
public  voidregisterTestMessageListenerForTopic(MockConnection connection, String topicName, boolean transacted, int acknowledgeMode, String messageSelector, MessageListener listener)
     Creates a new session and subscriber using the specified connection and registers the specified listener.
public  voidsetCurrentConnectionIndex(int connectionIndex)
     Sets the index of the MockConnection that should be used for the current test.
public  voidsetCurrentQueueConnectionIndex(int connectionIndex)
     Sets the index of the MockQueueConnection that should be used for the current test.
public  voidsetCurrentTopicConnectionIndex(int connectionIndex)
     Sets the index of the MockTopicConnection that should be used for the current test.
public  voidverifyAllDurableTopicSubscribersClosed(int indexOfSession)
     Verifies that all durable subscribers for the specified session are closed.
public  voidverifyAllMessageConsumersClosed(int indexOfSession)
     Verifies that all consumers for the specified session are closed.
public  voidverifyAllMessageProducersClosed(int indexOfSession)
     Verifies that all producers for the specified session are closed.
public  voidverifyAllQueueBrowsersClosed(int indexOfSession)
     Verifies that all browsers for the specified session are closed.
public  voidverifyAllQueueReceiversClosed(int indexOfSession)
     Verifies that all receivers for the specified session are closed.
public  voidverifyAllQueueSendersClosed(int indexOfSession)
     Verifies that all senders for the specified session are closed.
public  voidverifyAllQueueSessionsClosed()
     Verifies that all queue sessions are closed.
public  voidverifyAllQueueSessionsCommitted()
     Verifies that all queue sessions were commited.
public  voidverifyAllQueueSessionsRecovered()
     Verifies that all queue sessions are recovered.
public  voidverifyAllQueueSessionsRolledBack()
     Verifies that all queue sessions were rolled back.
public  voidverifyAllReceivedQueueMessagesAcknowledged(String nameOfQueue)
     Verifies that all received messages of the specified queue are acknowledged.
public  voidverifyAllReceivedQueueMessagesAcknowledged(int indexOfSession, int indexOfQueue)
     Verifies that all received messages of the specified temporary queue are acknowledged.
public  voidverifyAllReceivedTopicMessagesAcknowledged(String nameOfTopic)
     Verifies that all received messages of the specified topic are acknowledged.
public  voidverifyAllReceivedTopicMessagesAcknowledged(int indexOfSession, int indexOfTopic)
     Verifies that all received messages of the specified temporary topic are acknowledged.
public  voidverifyAllSessionsClosed()
     Verifies that all sessions are closed.
public  voidverifyAllSessionsCommitted()
     Verifies that all sessions were commited.
public  voidverifyAllSessionsRecovered()
     Verifies that all sessions are recovered.
public  voidverifyAllSessionsRolledBack()
     Verifies that all topic sessions were rolled back.
public  voidverifyAllTemporaryQueuesDeleted(int indexOfSession)
     Verifies that all temporary queues were deleted.
public  voidverifyAllTemporaryTopicsDeleted(int indexOfSession)
     Verifies that all temporary topics were deleted.
public  voidverifyAllTopicPublishersClosed(int indexOfSession)
     Verifies that all publishers for the specified session are closed.
public  voidverifyAllTopicSessionsClosed()
     Verifies that all topic sessions are closed.
public  voidverifyAllTopicSessionsCommitted()
     Verifies that all topic sessions were commited.
public  voidverifyAllTopicSessionsRecovered()
     Verifies that all topic sessions are recovered.
public  voidverifyAllTopicSessionsRolledBack()
     Verifies that all topic sessions were rolled back.
public  voidverifyAllTopicSubscribersClosed(int indexOfSession)
     Verifies that all subscribers for the specified session are closed.
public  voidverifyConnectionClosed()
     Verifies that the current MockConnection is closed.
public  voidverifyConnectionStarted()
     Verifies that the current MockConnection is started.
public  voidverifyConnectionStopped()
     Verifies that the current MockConnection is stopped.
public  voidverifyCreatedBytesMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a bytes message created with MockSession.createMessage is acknowledged.
public  voidverifyCreatedBytesMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a bytes message created with MockSession.createMessage is not acknowledged.
public  voidverifyCreatedMapMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a map message created with MockSession.createMessage is acknowledged.
public  voidverifyCreatedMapMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a map message created with MockSession.createMessage is not acknowledged.
public  voidverifyCreatedMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a message created with MockSession.createMessage is acknowledged.
public  voidverifyCreatedMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a message created with MockSession.createMessage is not acknowledged.
public  voidverifyCreatedObjectMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a object message created with MockSession.createMessage is acknowledged.
public  voidverifyCreatedObjectMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a object message created with MockSession.createMessage is not acknowledged.
public  voidverifyCreatedQueueBytesMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a bytes message created with MockQueueSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them.
public  voidverifyCreatedQueueBytesMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a bytes message created with MockQueueSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them.
public  voidverifyCreatedQueueMapMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a map message created with MockQueueSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them.
public  voidverifyCreatedQueueMapMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a map message created with MockQueueSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them.
public  voidverifyCreatedQueueMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a message created with MockQueueSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them.
public  voidverifyCreatedQueueMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a message created with MockQueueSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them.
public  voidverifyCreatedQueueObjectMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a object message created with MockQueueSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them.
public  voidverifyCreatedQueueObjectMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a object message created with MockQueueSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them.
public  voidverifyCreatedQueueStreamMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a stream message created with MockQueueSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them.
public  voidverifyCreatedQueueStreamMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a stream message created with MockQueueSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them.
public  voidverifyCreatedQueueTextMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a text message created with MockQueueSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them.
public  voidverifyCreatedQueueTextMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a text message created with MockQueueSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them.
public  voidverifyCreatedStreamMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a stream message created with MockSession.createMessage is acknowledged.
public  voidverifyCreatedStreamMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a stream message created with MockSession.createMessage is not acknowledged.
public  voidverifyCreatedTextMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a text message created with MockSession.createMessage is acknowledged.
public  voidverifyCreatedTextMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a text message created with MockSession.createMessage is not acknowledged.
public  voidverifyCreatedTopicBytesMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a bytes message created with MockTopicSession.createMessage is acknowledged.
public  voidverifyCreatedTopicBytesMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a bytes message created with MockTopicSession.createMessage is not acknowledged.
public  voidverifyCreatedTopicMapMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a map message created with MockTopicSession.createMessage is acknowledged.
public  voidverifyCreatedTopicMapMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a map message created with MockTopicSession.createMessage is not acknowledged.
public  voidverifyCreatedTopicMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a message created with MockTopicSession.createMessage is acknowledged.
public  voidverifyCreatedTopicMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a message created with MockTopicSession.createMessage is not acknowledged.
public  voidverifyCreatedTopicObjectMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a object message created with MockTopicSession.createMessage is acknowledged.
public  voidverifyCreatedTopicObjectMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a object message created with MockTopicSession.createMessage is not acknowledged.
public  voidverifyCreatedTopicStreamMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a stream message created with MockTopicSession.createMessage is acknowledged.
public  voidverifyCreatedTopicStreamMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a stream message created with MockTopicSession.createMessage is not acknowledged.
public  voidverifyCreatedTopicTextMessageAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a text message created with MockTopicSession.createMessage is acknowledged.
public  voidverifyCreatedTopicTextMessageNotAcknowledged(int indexOfSession, int indexOfMessage)
     Verifies that a text message created with MockTopicSession.createMessage is not acknowledged.
public  voidverifyCurrentQueueMessageEquals(String nameOfQueue, int indexOfSourceMessage, MockMessage targetMessage)
     Verifies that a message in the specified queue is equal to the specified message by calling the equals() method.
public  voidverifyCurrentQueueMessageEquals(int indexOfSession, int indexOfQueue, int indexOfSourceMessage, MockMessage targetMessage)
     Verifies that a message in the specified temporary queue is equal to the specified message by calling the equals() method.
public  voidverifyCurrentTopicMessageEquals(String nameOfTopic, int indexOfSourceMessage, MockMessage targetMessage)
     Verifies that a message in the specified topic is equal to the specified message by calling the equals() method.
public  voidverifyCurrentTopicMessageEquals(int indexOfSession, int indexOfTopic, int indexOfSourceMessage, MockMessage targetMessage)
     Verifies that a message in the specified temporary topic is equal to the specified message by calling the equals() method.
public  voidverifyDurableTopicSubscriberClosed(int indexOfSession, String name)
     Verifies that the specified durable subscriber is closed.
public  voidverifyDurableTopicSubscriberPresent(int indexOfSession, String name)
     Verifies that a durable subscriber exists.
public  voidverifyMessageEquals(MockMessage message1, MockMessage message2)
     Verifies that the specified messages are equal by calling the equals() method.
public  voidverifyNumberDurableTopicSubscribers(int indexOfSession, int numberOfSubscribers)
     Verifies the number of durable subscribers for the specified session.
public  voidverifyNumberDurableTopicSubscribers(int indexOfSession, String topicName, int numberOfSubscribers)
     Verifies the number of durable subscribers for the specified session and the specified topic name.
public  voidverifyNumberMessageConsumers(int indexOfSession, int numberOfConsumers)
     Verifies the number of consumers for the specified session.
public  voidverifyNumberMessageProducers(int indexOfSession, int numberOfProducers)
     Verifies the number of producers for the specified session.
public  voidverifyNumberOfCreatedBytesMessages(int indexOfSession, int number)
     Verifies the number of bytes messages created with MockSession.createBytesMessage .
public  voidverifyNumberOfCreatedMapMessages(int indexOfSession, int number)
     Verifies the number of map messages created with MockSession.createMapMessage .
public  voidverifyNumberOfCreatedMessages(int indexOfSession, int number)
     Verifies the number of messages created with MockSession.createMessage .
public  voidverifyNumberOfCreatedObjectMessages(int indexOfSession, int number)
     Verifies the number of object messages created with MockSession.createObjectMessage .
public  voidverifyNumberOfCreatedQueueBytesMessages(int indexOfSession, int number)
     Verifies the number of bytes messages created with MockQueueSession.createBytesMessage .
public  voidverifyNumberOfCreatedQueueMapMessages(int indexOfSession, int number)
     Verifies the number of map messages created with MockQueueSession.createMapMessage .
public  voidverifyNumberOfCreatedQueueMessages(int indexOfSession, int number)
     Verifies the number of messages created with MockQueueSession.createMessage .
public  voidverifyNumberOfCreatedQueueObjectMessages(int indexOfSession, int number)
     Verifies the number of object messages created with MockQueueSession.createObjectMessage .
public  voidverifyNumberOfCreatedQueueStreamMessages(int indexOfSession, int number)
     Verifies the number of stream messages created with MockQueueSession.createStreamMessage .
public  voidverifyNumberOfCreatedQueueTextMessages(int indexOfSession, int number)
     Verifies the number of text messages created with MockQueueSession.createTextMessage .
public  voidverifyNumberOfCreatedStreamMessages(int indexOfSession, int number)
     Verifies the number of stream messages created with MockSession.createStreamMessage .
public  voidverifyNumberOfCreatedTextMessages(int indexOfSession, int number)
     Verifies the number of text messages created with MockSession.createTextMessage .
public  voidverifyNumberOfCreatedTopicBytesMessages(int indexOfSession, int number)
     Verifies the number of bytes messages created with MockTopicSession.createBytesMessage .
public  voidverifyNumberOfCreatedTopicMapMessages(int indexOfSession, int number)
     Verifies the number of map messages created with MockTopicSession.createMapMessage .
public  voidverifyNumberOfCreatedTopicMessages(int indexOfSession, int number)
     Verifies the number of messages created with MockTopicSession.createMessage .
public  voidverifyNumberOfCreatedTopicObjectMessages(int indexOfSession, int number)
     Verifies the number of object messages created with MockTopicSession.createObjectMessage .
public  voidverifyNumberOfCreatedTopicStreamMessages(int indexOfSession, int number)
     Verifies the number of stream messages created with MockTopicSession.createStreamMessage .
public  voidverifyNumberOfCreatedTopicTextMessages(int indexOfSession, int number)
     Verifies the number of text messages created with MockTopicSession.createTextMessage .
public  voidverifyNumberOfCurrentQueueMessages(String nameOfQueue, int numberOfMessages)
     Verifies the number of messages in a queue.
public  voidverifyNumberOfCurrentQueueMessages(int indexOfSession, int indexOfQueue, int numberOfMessages)
     Verifies the number of messages in a temporary queue.
public  voidverifyNumberOfCurrentTopicMessages(String nameOfTopic, int numberOfMessages)
     Verifies the number of messages in a topic.
public  voidverifyNumberOfCurrentTopicMessages(int indexOfSession, int indexOfTopic, int numberOfMessages)
     Verifies the number of messages in a temporary topic.
public  voidverifyNumberOfReceivedQueueMessages(String nameOfQueue, int numberOfMessages)
     Verifies the number of messages received by a queue.
public  voidverifyNumberOfReceivedQueueMessages(int indexOfSession, int indexOfQueue, int numberOfMessages)
     Verifies the number of messages received by a temporary queue.
public  voidverifyNumberOfReceivedTopicMessages(String nameOfTopic, int numberOfMessages)
     Verifies the number of messages received by a topic.
public  voidverifyNumberOfReceivedTopicMessages(int indexOfSession, int indexOfTopic, int numberOfMessages)
     Verifies the number of messages received by a temporary topic.
public  voidverifyNumberQueueBrowsers(int indexOfSession, int numberOfBrowsers)
     Verifies the number of browsers for the specified session.
public  voidverifyNumberQueueBrowsers(int indexOfSession, String queueName, int numberOfBrowsers)
     Verifies the number of browsers for the specified session and the specified queue name.
public  voidverifyNumberQueueReceivers(int indexOfSession, int numberOfReceivers)
     Verifies the number of receivers for the specified session.
public  voidverifyNumberQueueReceivers(int indexOfSession, String queueName, int numberOfReceivers)
     Verifies the number of receivers for the specified session and the specified queue name.
public  voidverifyNumberQueueSenders(int indexOfSession, int numberOfSenders)
     Verifies the number of senders for the specified session.
public  voidverifyNumberQueueSenders(int indexOfSession, String queueName, int numberOfSenders)
     Verifies the number of senders for the specified session and the specified queue name.
public  voidverifyNumberQueueSessions(int number)
     Verifies the number of queue sessions.
public  voidverifyNumberSessions(int number)
     Verifies the number of sessions.
public  voidverifyNumberTemporaryQueues(int indexOfSession, int numberQueues)
     Verifies the number of temporary queues.
public  voidverifyNumberTemporaryTopics(int indexOfSession, int numberTopics)
     Verifies the number of temporary topics.
public  voidverifyNumberTopicPublishers(int indexOfSession, int numberOfPublishers)
     Verifies the number of publishers for the specified session.
public  voidverifyNumberTopicPublishers(int indexOfSession, String topicName, int numberOfPublishers)
     Verifies the number of publishers for the specified session and the specified topic name.
public  voidverifyNumberTopicSessions(int number)
     Verifies the number of topic sessions.
public  voidverifyNumberTopicSubscribers(int indexOfSession, int numberOfSubscribers)
     Verifies the number of subscribers for the specified session.
public  voidverifyNumberTopicSubscribers(int indexOfSession, String topicName, int numberOfSubscribers)
     Verifies the number of subscribers for the specified session and the specified topic name.
public  voidverifyQueueBrowserClosed(int indexOfSession, String queueName, int indexOfBrowser)
     Verifies that the specified browser is closed.
public  voidverifyQueueConnectionClosed()
     Verifies that the current MockQueueConnection is closed.
public  voidverifyQueueConnectionStarted()
     Verifies that the current MockQueueConnection is started.
public  voidverifyQueueConnectionStopped()
     Verifies that the current MockQueueConnection is stopped.
public  voidverifyQueueReceiverClosed(int indexOfSession, String queueName, int indexOfReceiver)
     Verifies that the specified receiver is closed.
public  voidverifyQueueSenderClosed(int indexOfSession, String queueName, int indexOfSender)
     Verifies that the specified sender is closed.
public  voidverifyQueueSessionClosed(int indexOfSession)
     Verifies that the queue session with the specified index is closed.
public  voidverifyQueueSessionCommitted(int indexOfSession)
     Verifies that the queue session with the specified index was committed.
public  voidverifyQueueSessionNotCommitted(int indexOfSession)
     Verifies that the queue session with the specified index was not committed.
public  voidverifyQueueSessionNotRecovered(int indexOfSession)
     Verifies that the queue session with the specified index was not recovered.
public  voidverifyQueueSessionNotRolledBack(int indexOfSession)
     Verifies that the queue session with the specified index was not rolled back.
public  voidverifyQueueSessionNumberCommits(int indexOfSession, int numberOfCommits)
     Verifies the number of commits of the queue session with the specified index.
public  voidverifyQueueSessionNumberRollbacks(int indexOfSession, int numberOfRollbacks)
     Verifies the number of rollbacks of the queue session with the specified index.
public  voidverifyQueueSessionRecovered(int indexOfSession)
     Verifies that the queue session with the specified index was recovered.
public  voidverifyQueueSessionRolledBack(int indexOfSession)
     Verifies that the queue session with the specified index was rolled back.
public  voidverifyReceivedQueueMessageAcknowledged(String nameOfQueue, int indexOfMessage)
     Verifies that a received message is acknowledged.
public  voidverifyReceivedQueueMessageAcknowledged(int indexOfSession, int indexOfQueue, int indexOfMessage)
     Verifies that message received by a temporary queue is acknowledged.
public  voidverifyReceivedQueueMessageEquals(String nameOfQueue, int indexOfSourceMessage, MockMessage targetMessage)
     Verifies that a received message is equal to the specified message by calling the equals() method.
public  voidverifyReceivedQueueMessageEquals(int indexOfSession, int indexOfQueue, int indexOfSourceMessage, MockMessage targetMessage)
     Verifies that a message received by a temporary queue is equal to the specified message by calling the equals() method.
public  voidverifyReceivedQueueMessageNotAcknowledged(String nameOfQueue, int indexOfMessage)
     Verifies that a received message is not acknowledged.
public  voidverifyReceivedQueueMessageNotAcknowledged(int indexOfSession, int indexOfQueue, int indexOfMessage)
     Verifies that a received by a temporary queue is not acknowledged.
public  voidverifyReceivedTopicMessageAcknowledged(String nameOfTopic, int indexOfMessage)
     Verifies that a received message is acknowledged.
public  voidverifyReceivedTopicMessageAcknowledged(int indexOfSession, int indexOfTopic, int indexOfMessage)
     Verifies that a message received by a temporary topic is acknowledged.
public  voidverifyReceivedTopicMessageEquals(String nameOfTopic, int indexOfSourceMessage, MockMessage targetMessage)
     Verifies that a received message is equal to the specified message by calling the equals() method.
public  voidverifyReceivedTopicMessageEquals(int indexOfSession, int indexOfTopic, int indexOfSourceMessage, MockMessage targetMessage)
     Verifies that a message received by a temporary topic is equal to the specified message by calling the equals() method.
public  voidverifyReceivedTopicMessageNotAcknowledged(String nameOfTopic, int indexOfMessage)
     Verifies that a received message is not acknowledged.
public  voidverifyReceivedTopicMessageNotAcknowledged(int indexOfSession, int indexOfTopic, int indexOfMessage)
     Verifies that a message received by a temporary topic is not acknowledged.
public  voidverifySessionClosed(int indexOfSession)
     Verifies that the session with the specified index is closed.
public  voidverifySessionCommitted(int indexOfSession)
     Verifies that the session with the specified index was committed.
public  voidverifySessionNotCommitted(int indexOfSession)
     Verifies that the session with the specified index was not committed.
public  voidverifySessionNotRecovered(int indexOfSession)
     Verifies that the session with the specified index was not recovered.
public  voidverifySessionNotRolledBack(int indexOfSession)
     Verifies that the session with the specified index was not rolled back.
public  voidverifySessionNumberCommits(int indexOfSession, int numberOfCommits)
     Verifies the number of commits of session with the specified index.
public  voidverifySessionNumberRollbacks(int indexOfSession, int numberOfRollbacks)
     Verifies the number of rollbacks of session with the specified index.
public  voidverifySessionRecovered(int indexOfSession)
     Verifies that the session with the specified index was recovered.
public  voidverifySessionRolledBack(int indexOfSession)
     Verifies that the session with the specified index was rolled back.
public  voidverifyTemporaryQueueDeleted(int indexOfSession, int indexOfQueue)
     Verifies that the temporary queue with the specified index was deleted.
public  voidverifyTemporaryTopicDeleted(int indexOfSession, int indexOfTopic)
     Verifies that the temporary topic with the specified index was closed.
public  voidverifyTopicConnectionClosed()
     Verifies that the current MockTopicConnection is closed.
public  voidverifyTopicConnectionStarted()
     Verifies that the current MockTopicConnection is started.
public  voidverifyTopicConnectionStopped()
     Verifies that the current MockTopicConnection is stopped.
public  voidverifyTopicPublisherClosed(int indexOfSession, String topicName, int indexOfPublisher)
     Verifies that the specified publisher is closed.
public  voidverifyTopicSessionClosed(int indexOfSession)
     Verifies that the topic session with the specified index is closed.
public  voidverifyTopicSessionCommitted(int indexOfSession)
     Verifies that the topic session with the specified index was committed.
public  voidverifyTopicSessionNotCommitted(int indexOfSession)
     Verifies that the topic session with the specified index was not committed.
public  voidverifyTopicSessionNotRecovered(int indexOfSession)
     Verifies that the topic session with the specified index was not recovered.
public  voidverifyTopicSessionNotRolledBack(int indexOfSession)
     Verifies that the topic session with the specified index was not rolled back.
public  voidverifyTopicSessionNumberCommits(int indexOfSession, int numberOfCommits)
     Verifies the number of commits of the topic session with the specified index.
public  voidverifyTopicSessionNumberRollbacks(int indexOfSession, int numberOfRollbacks)
     Verifies the number of rollbacks of the topic session with the specified index.
public  voidverifyTopicSessionRecovered(int indexOfSession)
     Verifies that the topic session with the specified index was recovered.
public  voidverifyTopicSessionRolledBack(int indexOfSession)
     Verifies that the topic session with the specified index was rolled back.
public  voidverifyTopicSubscriberClosed(int indexOfSession, String topicName, int indexOfSubscriber)
     Verifies that the specified subscriber is closed.


Constructor Detail
JMSTestModule
public JMSTestModule(JMSMockObjectFactory mockFactory)(Code)




Method Detail
getConfigurationManager
public ConfigurationManager getConfigurationManager()(Code)
Returns the ConfigurationManager . the ConfigurationManager



getCurrentConnection
public MockConnection getCurrentConnection()(Code)
Returns the current MockConnection based on its index or null if no connection was created. The connection has to be created using the com.mockrunner.mock.jms.MockConnectionFactory . the topic connection



getCurrentMessageListFromQueue
public List getCurrentMessageListFromQueue(String name)(Code)
Returns the list of messages that are currently present in the queue or null if no such queue exists.
Parameters:
  name - the name of the queue the list of messages



getCurrentMessageListFromTemporaryQueue
public List getCurrentMessageListFromTemporaryQueue(int indexOfSession, int indexOfQueue)(Code)
Returns the list of messages that are currently present in the temporary queue or null if no such queue exists. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfQueue - the index of the temporary queue the list of messages



getCurrentMessageListFromTemporaryTopic
public List getCurrentMessageListFromTemporaryTopic(int indexOfSession, int indexOfTopic)(Code)
Returns the list of messages that are currently present in the temporary topic or null if no such topic exists. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfTopic - the index of the temporary topic the list of messages



getCurrentMessageListFromTopic
public List getCurrentMessageListFromTopic(String name)(Code)
Returns the list of messages that are currently present in the topic or null if no such topic exists.
Parameters:
  name - the name of the queue the list of messages



getCurrentQueueConnection
public MockQueueConnection getCurrentQueueConnection()(Code)
Returns the current MockQueueConnection based on its index or null if no queue connection was created. The connection has to be created using the MockQueueConnectionFactory . the queue connection



getCurrentTopicConnection
public MockTopicConnection getCurrentTopicConnection()(Code)
Returns the current MockTopicConnection based on its index or null if no topic connection was created. The connection has to be created using the MockTopicConnectionFactory . the topic connection



getDestinationManager
public DestinationManager getDestinationManager()(Code)
Returns the DestinationManager . the DestinationManager



getMessageManager
public MessageManager getMessageManager(int indexOfSession)(Code)
Returns the MessageManager for the specified session or null if the session does not exist. The returned MessageManager is used to keep track of messages sent to topics. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session the MessageManager



getQueue
public MockQueue getQueue(String name)(Code)
Returns the MockQueue with the specified name or null if no such queue exists.
Parameters:
  name - the name of the queue the MockQueue



getQueueMessageManager
public MessageManager getQueueMessageManager(int indexOfSession)(Code)
Returns the MessageManager for the specified session or null if the session does not exist. The returned MessageManager is used to keep track of messages sent to queues. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session the MessageManager



getQueueSession
public MockQueueSession getQueueSession(int indexOfSession)(Code)
Returns the MockQueueSession for the specified index or null if the session does not exist. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session the MockQueueSession



getQueueSessionList
public List getQueueSessionList()(Code)
Returns the list of MockQueueSession objects. The sessions have been created using the current MockQueueConnection . the MockQueueSession list



getQueueTransmissionManager
public QueueTransmissionManager getQueueTransmissionManager(int indexOfSession)(Code)
Returns the QueueTransmissionManager for the specified session or null if the session does not exist. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session the QueueTransmissionManager



getQueueTransmissionManagerWrapper
public TransmissionManagerWrapper getQueueTransmissionManagerWrapper(int indexOfSession)(Code)
Returns the TransmissionManagerWrapper for the specified session or null if the session does not exist. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session the TransmissionManagerWrapper



getReceivedMessageListFromQueue
public List getReceivedMessageListFromQueue(String name)(Code)
Returns the list of messages that were received by the queue or null if no such queue exists.
Parameters:
  name - the name of the queue the list of messages



getReceivedMessageListFromTemporaryQueue
public List getReceivedMessageListFromTemporaryQueue(int indexOfSession, int indexOfQueue)(Code)
Returns the list of messages that were received by the temporary queue or null if no such queue exists. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfQueue - the index of the temporary queue the list of messages



getReceivedMessageListFromTemporaryTopic
public List getReceivedMessageListFromTemporaryTopic(int indexOfSession, int indexOfTopic)(Code)
Returns the list of messages that were received by the temporary topic or null if no such topic exists. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfTopic - the index of the temporary topic the list of messages



getReceivedMessageListFromTopic
public List getReceivedMessageListFromTopic(String name)(Code)
Returns the list of messages that were received by the topic or null if no such topic exists.
Parameters:
  name - the name of the topic the list of messages



getSession
public MockSession getSession(int indexOfSession)(Code)
Returns the MockSession for the specified index or null if the session does not exist. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session the MockSession



getSessionList
public List getSessionList()(Code)
Returns the list of MockSession objects. The sessions have been created using the current MockConnection . the MockSession list



getTemporaryQueue
public MockTemporaryQueue getTemporaryQueue(int indexOfSession, int indexOfQueue)(Code)
Returns the MockTemporaryQueue with the specified index for the specified session. Returns null if no such temporary queue exists. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfQueue - the index of the temporary queue the MockTemporaryQueue



getTemporaryQueueList
public List getTemporaryQueueList(int indexOfSession)(Code)
Returns the list of MockTemporaryQueue objects for the specified session. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session the MockTemporaryQueue list



getTemporaryTopic
public MockTemporaryTopic getTemporaryTopic(int indexOfSession, int indexOfTopic)(Code)
Returns the MockTemporaryTopic with the specified index for the specified session. Returns null if no such temporary queue exists. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfTopic - the index of the temporary queue the MockTemporaryTopic



getTemporaryTopicList
public List getTemporaryTopicList(int indexOfSession)(Code)
Returns the list of MockTemporaryTopic objects for the specified session. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session the MockTemporaryTopic list



getTopic
public MockTopic getTopic(String name)(Code)
Returns the MockTopic with the specified name or null if no such topic exists.
Parameters:
  name - the name of the topic the MockTopic



getTopicMessageManager
public MessageManager getTopicMessageManager(int indexOfSession)(Code)
Returns the MessageManager for the specified session or null if the session does not exist. The returned MessageManager is used to keep track of messages sent to topics. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session the MessageManager



getTopicSession
public MockTopicSession getTopicSession(int indexOfSession)(Code)
Returns the MockTopicSession for the specified index or null if the session does not exist. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session the MockTopicSession



getTopicSessionList
public List getTopicSessionList()(Code)
Returns the list of MockTopicSession objects. The sessions have been created using the current MockTopicConnection . the MockTopicSession list



getTopicTransmissionManager
public TopicTransmissionManager getTopicTransmissionManager(int indexOfSession)(Code)
Returns the TopicTransmissionManager for the specified session or null if the session does not exist. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session the TopicTransmissionManager



getTopicTransmissionManagerWrapper
public TransmissionManagerWrapper getTopicTransmissionManagerWrapper(int indexOfSession)(Code)
Returns the TransmissionManagerWrapper for the specified session or null if the session does not exist. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session the TransmissionManagerWrapper



getTransmissionManager
public TransmissionManagerWrapper getTransmissionManager(int indexOfSession)(Code)
JMSTestModule.getTransmissionManagerWrapper



getTransmissionManagerWrapper
public TransmissionManagerWrapper getTransmissionManagerWrapper(int indexOfSession)(Code)
Returns the TransmissionManagerWrapper for the specified session or null if the session does not exist. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session the TransmissionManagerWrapper



registerTestMessageListenerForQueue
public void registerTestMessageListenerForQueue(String queueName, MessageListener listener)(Code)
Creates a new connection and uses it for creating a new session and receiver. Registers the specified listener. Starts the connection for message receiving. This method is useful for creating test listeners when testing senders. It can be used to register message driven beans. Note that the created connection is the latest created connection and automatically becomes the default connection for the test module. The created session is transacted. This method uses the MockQueueConnectionFactory for creating the connection and the session. If you want to use the com.mockrunner.mock.jms.MockConnectionFactory you have to create the connection on your own and call JMSTestModule.registerTestMessageListenerForQueue(MockConnection,String,MessageListener) .
Parameters:
  queueName - the name of the queue used for message receiving
Parameters:
  listener - the listener that should be registered



registerTestMessageListenerForQueue
public void registerTestMessageListenerForQueue(MockConnection connection, String queueName, MessageListener listener)(Code)
Creates a new session and receiver using the specified connection and registers the specified listener. Starts the connection for message receiving. This method is useful for creating test listeners when testing senders. It can be used to register message driven beans. The created session is transacted.
Parameters:
  connection - the connection used for creating the session
Parameters:
  queueName - the name of the queue used for message receiving
Parameters:
  listener - the listener that should be registered



registerTestMessageListenerForQueue
public void registerTestMessageListenerForQueue(MockConnection connection, String queueName, boolean transacted, int acknowledgeMode, MessageListener listener)(Code)
Creates a new session and receiver using the specified connection and registers the specified listener. Starts the connection for message receiving. This method is useful for creating test listeners when testing senders. It can be used to register message driven beans.
Parameters:
  connection - the connection used for creating the session
Parameters:
  queueName - the name of the queue used for message receiving
Parameters:
  transacted - should the created session be transacted
Parameters:
  acknowledgeMode - the acknowledge mode of the created session
Parameters:
  listener - the listener that should be registered



registerTestMessageListenerForQueue
public void registerTestMessageListenerForQueue(MockConnection connection, String queueName, boolean transacted, int acknowledgeMode, String messageSelector, MessageListener listener)(Code)
Creates a new session and receiver using the specified connection and registers the specified listener. Starts the connection for message receiving. This method is useful for creating test listeners when testing senders. It can be used to register message driven beans.
Parameters:
  connection - the connection used for creating the session
Parameters:
  queueName - the name of the queue used for message receiving
Parameters:
  transacted - should the created session be transacted
Parameters:
  acknowledgeMode - the acknowledge mode of the created session
Parameters:
  messageSelector - the message selector
Parameters:
  listener - the listener that should be registered



registerTestMessageListenerForTopic
public void registerTestMessageListenerForTopic(String topicName, MessageListener listener)(Code)
Creates a new connection and uses it for creating a new session and subscriber. Registers the specified listener. Starts the connection for message receiving. This method is useful for creating test listeners when testing publishers. It can be used to resgister message driven beans. Note that the created connection is the latest created connection and automatically becomes the default connection for the test module. The created session is transacted. This method uses the MockTopicConnectionFactory for creating the connection and the session. If you want to use the com.mockrunner.mock.jms.MockConnectionFactory you have to create the connection on your own and call JMSTestModule.registerTestMessageListenerForTopic(MockConnection,String,MessageListener) .
Parameters:
  topicName - the name of the topic used for message receiving
Parameters:
  listener - the listener that should be registered



registerTestMessageListenerForTopic
public void registerTestMessageListenerForTopic(MockConnection connection, String topicName, MessageListener listener)(Code)
Creates a new session and subscriber using the specified connection and registers the specified listener. Starts the connection for message receiving. This method is useful for creating test listeners when testing publishers. It can be used to resgister message driven beans. The created session is transacted.
Parameters:
  connection - the connection used for creating the session
Parameters:
  topicName - the name of the topic used for message receiving
Parameters:
  listener - the listener that should be registered



registerTestMessageListenerForTopic
public void registerTestMessageListenerForTopic(MockConnection connection, String topicName, boolean transacted, int acknowledgeMode, MessageListener listener)(Code)
Creates a new session and subscriber using the specified connection and registers the specified listener. Starts the connection for message receiving. This method is useful for creating test listeners when testing publishers. It can be used to resgister message driven beans.
Parameters:
  connection - the connection used for creating the session
Parameters:
  topicName - the name of the topic used for message receiving
Parameters:
  transacted - should the created session be transacted
Parameters:
  acknowledgeMode - the acknowledge mode of the created session
Parameters:
  listener - the listener that should be registered



registerTestMessageListenerForTopic
public void registerTestMessageListenerForTopic(MockConnection connection, String topicName, boolean transacted, int acknowledgeMode, String messageSelector, MessageListener listener)(Code)
Creates a new session and subscriber using the specified connection and registers the specified listener. Starts the connection for message receiving. This method is useful for creating test listeners when testing publishers. It can be used to resgister message driven beans.
Parameters:
  connection - the connection used for creating the session
Parameters:
  topicName - the name of the topic used for message receiving
Parameters:
  transacted - should the created session be transacted
Parameters:
  acknowledgeMode - the acknowledge mode of the created session
Parameters:
  messageSelector - the message selector
Parameters:
  listener - the listener that should be registered



setCurrentConnectionIndex
public void setCurrentConnectionIndex(int connectionIndex)(Code)
Sets the index of the MockConnection that should be used for the current test. Per default the latest created connection is used.
Parameters:
  connectionIndex - the index of the connection



setCurrentQueueConnectionIndex
public void setCurrentQueueConnectionIndex(int connectionIndex)(Code)
Sets the index of the MockQueueConnection that should be used for the current test. Per default the latest created connection is used.
Parameters:
  connectionIndex - the index of the connection



setCurrentTopicConnectionIndex
public void setCurrentTopicConnectionIndex(int connectionIndex)(Code)
Sets the index of the MockTopicConnection that should be used for the current test. Per default the latest created connection is used.
Parameters:
  connectionIndex - the index of the connection



verifyAllDurableTopicSubscribersClosed
public void verifyAllDurableTopicSubscribersClosed(int indexOfSession)(Code)
Verifies that all durable subscribers for the specified session are closed. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyAllMessageConsumersClosed
public void verifyAllMessageConsumersClosed(int indexOfSession)(Code)
Verifies that all consumers for the specified session are closed. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyAllMessageProducersClosed
public void verifyAllMessageProducersClosed(int indexOfSession)(Code)
Verifies that all producers for the specified session are closed. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyAllQueueBrowsersClosed
public void verifyAllQueueBrowsersClosed(int indexOfSession)(Code)
Verifies that all browsers for the specified session are closed. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyAllQueueReceiversClosed
public void verifyAllQueueReceiversClosed(int indexOfSession)(Code)
Verifies that all receivers for the specified session are closed. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyAllQueueSendersClosed
public void verifyAllQueueSendersClosed(int indexOfSession)(Code)
Verifies that all senders for the specified session are closed. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyAllQueueSessionsClosed
public void verifyAllQueueSessionsClosed()(Code)
Verifies that all queue sessions are closed. The sessions have to be created using the current MockQueueConnection .
throws:
  VerifyFailedException - if verification fails



verifyAllQueueSessionsCommitted
public void verifyAllQueueSessionsCommitted()(Code)
Verifies that all queue sessions were commited. The sessions have to be created using the current MockQueueConnection .
throws:
  VerifyFailedException - if verification fails



verifyAllQueueSessionsRecovered
public void verifyAllQueueSessionsRecovered()(Code)
Verifies that all queue sessions are recovered. The sessions have to be created using the current MockQueueConnection .
throws:
  VerifyFailedException - if verification fails



verifyAllQueueSessionsRolledBack
public void verifyAllQueueSessionsRolledBack()(Code)
Verifies that all queue sessions were rolled back. The sessions have to be created using the current MockQueueConnection .
throws:
  VerifyFailedException - if verification fails



verifyAllReceivedQueueMessagesAcknowledged
public void verifyAllReceivedQueueMessagesAcknowledged(String nameOfQueue)(Code)
Verifies that all received messages of the specified queue are acknowledged.
Parameters:
  nameOfQueue - the name of the queue
throws:
  VerifyFailedException - if verification fails



verifyAllReceivedQueueMessagesAcknowledged
public void verifyAllReceivedQueueMessagesAcknowledged(int indexOfSession, int indexOfQueue)(Code)
Verifies that all received messages of the specified temporary queue are acknowledged. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfQueue - the index of the temporary queue
throws:
  VerifyFailedException - if verification fails



verifyAllReceivedTopicMessagesAcknowledged
public void verifyAllReceivedTopicMessagesAcknowledged(String nameOfTopic)(Code)
Verifies that all received messages of the specified topic are acknowledged.
Parameters:
  nameOfTopic - the name of the topic
throws:
  VerifyFailedException - if verification fails



verifyAllReceivedTopicMessagesAcknowledged
public void verifyAllReceivedTopicMessagesAcknowledged(int indexOfSession, int indexOfTopic)(Code)
Verifies that all received messages of the specified temporary topic are acknowledged. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfTopic - the index of the temporary topic
throws:
  VerifyFailedException - if verification fails



verifyAllSessionsClosed
public void verifyAllSessionsClosed()(Code)
Verifies that all sessions are closed. The sessions have to be created using the current MockConnection .
throws:
  VerifyFailedException - if verification fails



verifyAllSessionsCommitted
public void verifyAllSessionsCommitted()(Code)
Verifies that all sessions were commited. The sessions have to be created using the current MockConnection .
throws:
  VerifyFailedException - if verification fails



verifyAllSessionsRecovered
public void verifyAllSessionsRecovered()(Code)
Verifies that all sessions are recovered. The sessions have to be created using the current MockConnection .
throws:
  VerifyFailedException - if verification fails



verifyAllSessionsRolledBack
public void verifyAllSessionsRolledBack()(Code)
Verifies that all topic sessions were rolled back. The sessions have to be created using the current MockConnection .
throws:
  VerifyFailedException - if verification fails



verifyAllTemporaryQueuesDeleted
public void verifyAllTemporaryQueuesDeleted(int indexOfSession)(Code)
Verifies that all temporary queues were deleted. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyAllTemporaryTopicsDeleted
public void verifyAllTemporaryTopicsDeleted(int indexOfSession)(Code)
Verifies that all temporary topics were deleted. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyAllTopicPublishersClosed
public void verifyAllTopicPublishersClosed(int indexOfSession)(Code)
Verifies that all publishers for the specified session are closed. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyAllTopicSessionsClosed
public void verifyAllTopicSessionsClosed()(Code)
Verifies that all topic sessions are closed. The sessions have to be created using the current MockTopicConnection .
throws:
  VerifyFailedException - if verification fails



verifyAllTopicSessionsCommitted
public void verifyAllTopicSessionsCommitted()(Code)
Verifies that all topic sessions were commited. The sessions have to be created using the current MockTopicConnection .
throws:
  VerifyFailedException - if verification fails



verifyAllTopicSessionsRecovered
public void verifyAllTopicSessionsRecovered()(Code)
Verifies that all topic sessions are recovered. The sessions have to be created using the current MockTopicConnection .
throws:
  VerifyFailedException - if verification fails



verifyAllTopicSessionsRolledBack
public void verifyAllTopicSessionsRolledBack()(Code)
Verifies that all topic sessions were rolled back. The sessions have to be created using the current MockTopicConnection .
throws:
  VerifyFailedException - if verification fails



verifyAllTopicSubscribersClosed
public void verifyAllTopicSubscribersClosed(int indexOfSession)(Code)
Verifies that all subscribers for the specified session are closed. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyConnectionClosed
public void verifyConnectionClosed()(Code)
Verifies that the current MockConnection is closed. The connection has to be created using the current com.mockrunner.mock.jms.MockConnectionFactory .
throws:
  VerifyFailedException - if verification fails



verifyConnectionStarted
public void verifyConnectionStarted()(Code)
Verifies that the current MockConnection is started. The connection has to be created using the current com.mockrunner.mock.jms.MockConnectionFactory .
throws:
  VerifyFailedException - if verification fails



verifyConnectionStopped
public void verifyConnectionStopped()(Code)
Verifies that the current MockConnection is stopped. The connection has to be created using the current com.mockrunner.mock.jms.MockConnectionFactory .
throws:
  VerifyFailedException - if verification fails



verifyCreatedBytesMessageAcknowledged
public void verifyCreatedBytesMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a bytes message created with MockSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedBytesMessageNotAcknowledged
public void verifyCreatedBytesMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a bytes message created with MockSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedMapMessageAcknowledged
public void verifyCreatedMapMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a map message created with MockSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedMapMessageNotAcknowledged
public void verifyCreatedMapMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a map message created with MockSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedMessageAcknowledged
public void verifyCreatedMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a message created with MockSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedMessageNotAcknowledged
public void verifyCreatedMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a message created with MockSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedObjectMessageAcknowledged
public void verifyCreatedObjectMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a object message created with MockSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedObjectMessageNotAcknowledged
public void verifyCreatedObjectMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a object message created with MockSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedQueueBytesMessageAcknowledged
public void verifyCreatedQueueBytesMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a bytes message created with MockQueueSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedQueueBytesMessageNotAcknowledged
public void verifyCreatedQueueBytesMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a bytes message created with MockQueueSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedQueueMapMessageAcknowledged
public void verifyCreatedQueueMapMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a map message created with MockQueueSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedQueueMapMessageNotAcknowledged
public void verifyCreatedQueueMapMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a map message created with MockQueueSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedQueueMessageAcknowledged
public void verifyCreatedQueueMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a message created with MockQueueSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedQueueMessageNotAcknowledged
public void verifyCreatedQueueMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a message created with MockQueueSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedQueueObjectMessageAcknowledged
public void verifyCreatedQueueObjectMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a object message created with MockQueueSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedQueueObjectMessageNotAcknowledged
public void verifyCreatedQueueObjectMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a object message created with MockQueueSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedQueueStreamMessageAcknowledged
public void verifyCreatedQueueStreamMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a stream message created with MockQueueSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedQueueStreamMessageNotAcknowledged
public void verifyCreatedQueueStreamMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a stream message created with MockQueueSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedQueueTextMessageAcknowledged
public void verifyCreatedQueueTextMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a text message created with MockQueueSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedQueueTextMessageNotAcknowledged
public void verifyCreatedQueueTextMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a text message created with MockQueueSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedStreamMessageAcknowledged
public void verifyCreatedStreamMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a stream message created with MockSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedStreamMessageNotAcknowledged
public void verifyCreatedStreamMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a stream message created with MockSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTextMessageAcknowledged
public void verifyCreatedTextMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a text message created with MockSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTextMessageNotAcknowledged
public void verifyCreatedTextMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a text message created with MockSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTopicBytesMessageAcknowledged
public void verifyCreatedTopicBytesMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a bytes message created with MockTopicSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTopicBytesMessageNotAcknowledged
public void verifyCreatedTopicBytesMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a bytes message created with MockTopicSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTopicMapMessageAcknowledged
public void verifyCreatedTopicMapMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a map message created with MockTopicSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTopicMapMessageNotAcknowledged
public void verifyCreatedTopicMapMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a map message created with MockTopicSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTopicMessageAcknowledged
public void verifyCreatedTopicMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a message created with MockTopicSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTopicMessageNotAcknowledged
public void verifyCreatedTopicMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a message created with MockTopicSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTopicObjectMessageAcknowledged
public void verifyCreatedTopicObjectMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a object message created with MockTopicSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTopicObjectMessageNotAcknowledged
public void verifyCreatedTopicObjectMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a object message created with MockTopicSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTopicStreamMessageAcknowledged
public void verifyCreatedTopicStreamMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a stream message created with MockTopicSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTopicStreamMessageNotAcknowledged
public void verifyCreatedTopicStreamMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a stream message created with MockTopicSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTopicTextMessageAcknowledged
public void verifyCreatedTopicTextMessageAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a text message created with MockTopicSession.createMessage is acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCreatedTopicTextMessageNotAcknowledged
public void verifyCreatedTopicTextMessageNotAcknowledged(int indexOfSession, int indexOfMessage)(Code)
Verifies that a text message created with MockTopicSession.createMessage is not acknowledged. This method makes sense if messages are not cloned when sending them. This is the default, use ConfigurationManager.setDoCloneOnSend . If messages are cloned, the cloned message is acknowledged instead of the created message. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfMessage - the index of the message
throws:
  VerifyFailedException - if verification fails



verifyCurrentQueueMessageEquals
public void verifyCurrentQueueMessageEquals(String nameOfQueue, int indexOfSourceMessage, MockMessage targetMessage)(Code)
Verifies that a message in the specified queue is equal to the specified message by calling the equals() method. All mock messages provide a suitable implementation of equals().
Parameters:
  nameOfQueue - the name of the queue
Parameters:
  indexOfSourceMessage - the index of the message in the queue
Parameters:
  targetMessage - the message that will be used for comparison
throws:
  VerifyFailedException - if verification fails



verifyCurrentQueueMessageEquals
public void verifyCurrentQueueMessageEquals(int indexOfSession, int indexOfQueue, int indexOfSourceMessage, MockMessage targetMessage)(Code)
Verifies that a message in the specified temporary queue is equal to the specified message by calling the equals() method. All mock messages provide a suitable implementation of equals(). The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfQueue - the index of the temporary queue
Parameters:
  indexOfSourceMessage - the index of the message in the queue
Parameters:
  targetMessage - the message that will be used for comparison
throws:
  VerifyFailedException - if verification fails



verifyCurrentTopicMessageEquals
public void verifyCurrentTopicMessageEquals(String nameOfTopic, int indexOfSourceMessage, MockMessage targetMessage)(Code)
Verifies that a message in the specified topic is equal to the specified message by calling the equals() method. All mock messages provide a suitable implementation of equals().
Parameters:
  nameOfTopic - the name of the topic
Parameters:
  indexOfSourceMessage - the index of the message in the topic
Parameters:
  targetMessage - the message that will be used for comparison
throws:
  VerifyFailedException - if verification fails



verifyCurrentTopicMessageEquals
public void verifyCurrentTopicMessageEquals(int indexOfSession, int indexOfTopic, int indexOfSourceMessage, MockMessage targetMessage)(Code)
Verifies that a message in the specified temporary topic is equal to the specified message by calling the equals() method. All mock messages provide a suitable implementation of equals(). The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfTopic - the index of the temporary topic
Parameters:
  indexOfSourceMessage - the index of the message in the topic
Parameters:
  targetMessage - the message that will be used for comparison
throws:
  VerifyFailedException - if verification fails



verifyDurableTopicSubscriberClosed
public void verifyDurableTopicSubscriberClosed(int indexOfSession, String name)(Code)
Verifies that the specified durable subscriber is closed. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  name - the name of the subscription
throws:
  VerifyFailedException - if verification fails



verifyDurableTopicSubscriberPresent
public void verifyDurableTopicSubscriberPresent(int indexOfSession, String name)(Code)
Verifies that a durable subscriber exists. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  name - the name of the subscription
throws:
  VerifyFailedException - if verification fails



verifyMessageEquals
public void verifyMessageEquals(MockMessage message1, MockMessage message2)(Code)
Verifies that the specified messages are equal by calling the equals() method. All mock messages provide a suitable implementation of equals().
Parameters:
  message1 - the first message
Parameters:
  message2 - the second message
throws:
  VerifyFailedException - if verification fails



verifyNumberDurableTopicSubscribers
public void verifyNumberDurableTopicSubscribers(int indexOfSession, int numberOfSubscribers)(Code)
Verifies the number of durable subscribers for the specified session. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfSubscribers - the expected number of durable subscribers
throws:
  VerifyFailedException - if verification fails



verifyNumberDurableTopicSubscribers
public void verifyNumberDurableTopicSubscribers(int indexOfSession, String topicName, int numberOfSubscribers)(Code)
Verifies the number of durable subscribers for the specified session and the specified topic name. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  topicName - the name of the topic
Parameters:
  numberOfSubscribers - the expected number of durable subscribers
throws:
  VerifyFailedException - if verification fails



verifyNumberMessageConsumers
public void verifyNumberMessageConsumers(int indexOfSession, int numberOfConsumers)(Code)
Verifies the number of consumers for the specified session. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfConsumers - the expected number of consumers
throws:
  VerifyFailedException - if verification fails



verifyNumberMessageProducers
public void verifyNumberMessageProducers(int indexOfSession, int numberOfProducers)(Code)
Verifies the number of producers for the specified session. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfProducers - the expected number of producers
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedBytesMessages
public void verifyNumberOfCreatedBytesMessages(int indexOfSession, int number)(Code)
Verifies the number of bytes messages created with MockSession.createBytesMessage . The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of bytes messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedMapMessages
public void verifyNumberOfCreatedMapMessages(int indexOfSession, int number)(Code)
Verifies the number of map messages created with MockSession.createMapMessage . The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of map messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedMessages
public void verifyNumberOfCreatedMessages(int indexOfSession, int number)(Code)
Verifies the number of messages created with MockSession.createMessage . The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedObjectMessages
public void verifyNumberOfCreatedObjectMessages(int indexOfSession, int number)(Code)
Verifies the number of object messages created with MockSession.createObjectMessage . The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of object messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedQueueBytesMessages
public void verifyNumberOfCreatedQueueBytesMessages(int indexOfSession, int number)(Code)
Verifies the number of bytes messages created with MockQueueSession.createBytesMessage . The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of bytes messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedQueueMapMessages
public void verifyNumberOfCreatedQueueMapMessages(int indexOfSession, int number)(Code)
Verifies the number of map messages created with MockQueueSession.createMapMessage . The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of map messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedQueueMessages
public void verifyNumberOfCreatedQueueMessages(int indexOfSession, int number)(Code)
Verifies the number of messages created with MockQueueSession.createMessage . The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedQueueObjectMessages
public void verifyNumberOfCreatedQueueObjectMessages(int indexOfSession, int number)(Code)
Verifies the number of object messages created with MockQueueSession.createObjectMessage . The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of object messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedQueueStreamMessages
public void verifyNumberOfCreatedQueueStreamMessages(int indexOfSession, int number)(Code)
Verifies the number of stream messages created with MockQueueSession.createStreamMessage . The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of stream messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedQueueTextMessages
public void verifyNumberOfCreatedQueueTextMessages(int indexOfSession, int number)(Code)
Verifies the number of text messages created with MockQueueSession.createTextMessage . The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of text messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedStreamMessages
public void verifyNumberOfCreatedStreamMessages(int indexOfSession, int number)(Code)
Verifies the number of stream messages created with MockSession.createStreamMessage . The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of stream messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedTextMessages
public void verifyNumberOfCreatedTextMessages(int indexOfSession, int number)(Code)
Verifies the number of text messages created with MockSession.createTextMessage . The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of text messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedTopicBytesMessages
public void verifyNumberOfCreatedTopicBytesMessages(int indexOfSession, int number)(Code)
Verifies the number of bytes messages created with MockTopicSession.createBytesMessage . The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of bytes messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedTopicMapMessages
public void verifyNumberOfCreatedTopicMapMessages(int indexOfSession, int number)(Code)
Verifies the number of map messages created with MockTopicSession.createMapMessage . The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of map messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedTopicMessages
public void verifyNumberOfCreatedTopicMessages(int indexOfSession, int number)(Code)
Verifies the number of messages created with MockTopicSession.createMessage . The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedTopicObjectMessages
public void verifyNumberOfCreatedTopicObjectMessages(int indexOfSession, int number)(Code)
Verifies the number of object messages created with MockTopicSession.createObjectMessage . The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of object messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedTopicStreamMessages
public void verifyNumberOfCreatedTopicStreamMessages(int indexOfSession, int number)(Code)
Verifies the number of stream messages created with MockTopicSession.createStreamMessage . The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of stream messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCreatedTopicTextMessages
public void verifyNumberOfCreatedTopicTextMessages(int indexOfSession, int number)(Code)
Verifies the number of text messages created with MockTopicSession.createTextMessage . The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  number - the expected number of text messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCurrentQueueMessages
public void verifyNumberOfCurrentQueueMessages(String nameOfQueue, int numberOfMessages)(Code)
Verifies the number of messages in a queue.
Parameters:
  nameOfQueue - the name of the queue
Parameters:
  numberOfMessages - the expected number of messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCurrentQueueMessages
public void verifyNumberOfCurrentQueueMessages(int indexOfSession, int indexOfQueue, int numberOfMessages)(Code)
Verifies the number of messages in a temporary queue. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfQueue - the index of the temporary queue
Parameters:
  numberOfMessages - the expected number of messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCurrentTopicMessages
public void verifyNumberOfCurrentTopicMessages(String nameOfTopic, int numberOfMessages)(Code)
Verifies the number of messages in a topic.
Parameters:
  nameOfTopic - the name of the topic
Parameters:
  numberOfMessages - the expected number of messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfCurrentTopicMessages
public void verifyNumberOfCurrentTopicMessages(int indexOfSession, int indexOfTopic, int numberOfMessages)(Code)
Verifies the number of messages in a temporary topic. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfTopic - the index of the temporary topic
Parameters:
  numberOfMessages - the expected number of messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfReceivedQueueMessages
public void verifyNumberOfReceivedQueueMessages(String nameOfQueue, int numberOfMessages)(Code)
Verifies the number of messages received by a queue.
Parameters:
  nameOfQueue - the name of the queue
Parameters:
  numberOfMessages - the expected number of messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfReceivedQueueMessages
public void verifyNumberOfReceivedQueueMessages(int indexOfSession, int indexOfQueue, int numberOfMessages)(Code)
Verifies the number of messages received by a temporary queue. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfQueue - the index of the temporary queue
Parameters:
  numberOfMessages - the expected number of messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfReceivedTopicMessages
public void verifyNumberOfReceivedTopicMessages(String nameOfTopic, int numberOfMessages)(Code)
Verifies the number of messages received by a topic.
Parameters:
  nameOfTopic - the name of the topic
Parameters:
  numberOfMessages - the expected number of messages
throws:
  VerifyFailedException - if verification fails



verifyNumberOfReceivedTopicMessages
public void verifyNumberOfReceivedTopicMessages(int indexOfSession, int indexOfTopic, int numberOfMessages)(Code)
Verifies the number of messages received by a temporary topic. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfTopic - the index of the temporary topic
Parameters:
  numberOfMessages - the expected number of messages
throws:
  VerifyFailedException - if verification fails



verifyNumberQueueBrowsers
public void verifyNumberQueueBrowsers(int indexOfSession, int numberOfBrowsers)(Code)
Verifies the number of browsers for the specified session. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfBrowsers - the expected number of browsers
throws:
  VerifyFailedException - if verification fails



verifyNumberQueueBrowsers
public void verifyNumberQueueBrowsers(int indexOfSession, String queueName, int numberOfBrowsers)(Code)
Verifies the number of browsers for the specified session and the specified queue name. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  queueName - the name of the queue
Parameters:
  numberOfBrowsers - the expected number of browsers
throws:
  VerifyFailedException - if verification fails



verifyNumberQueueReceivers
public void verifyNumberQueueReceivers(int indexOfSession, int numberOfReceivers)(Code)
Verifies the number of receivers for the specified session. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfReceivers - the expected number of receivers
throws:
  VerifyFailedException - if verification fails



verifyNumberQueueReceivers
public void verifyNumberQueueReceivers(int indexOfSession, String queueName, int numberOfReceivers)(Code)
Verifies the number of receivers for the specified session and the specified queue name. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  queueName - the name of the queue
Parameters:
  numberOfReceivers - the expected number of receivers
throws:
  VerifyFailedException - if verification fails



verifyNumberQueueSenders
public void verifyNumberQueueSenders(int indexOfSession, int numberOfSenders)(Code)
Verifies the number of senders for the specified session. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfSenders - the expected number of senders
throws:
  VerifyFailedException - if verification fails



verifyNumberQueueSenders
public void verifyNumberQueueSenders(int indexOfSession, String queueName, int numberOfSenders)(Code)
Verifies the number of senders for the specified session and the specified queue name. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  queueName - the name of the queue
Parameters:
  numberOfSenders - the expected number of senders
throws:
  VerifyFailedException - if verification fails



verifyNumberQueueSessions
public void verifyNumberQueueSessions(int number)(Code)
Verifies the number of queue sessions. The sessions have to be created using the current MockQueueConnection .
Parameters:
  number - the expected number of queue sessions
throws:
  VerifyFailedException - if verification fails



verifyNumberSessions
public void verifyNumberSessions(int number)(Code)
Verifies the number of sessions. The sessions have to be created using the current MockConnection .
Parameters:
  number - the expected number of sessions
throws:
  VerifyFailedException - if verification fails



verifyNumberTemporaryQueues
public void verifyNumberTemporaryQueues(int indexOfSession, int numberQueues)(Code)
Verifies the number of temporary queues. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberQueues - the expected number of temporary queues
throws:
  VerifyFailedException - if verification fails



verifyNumberTemporaryTopics
public void verifyNumberTemporaryTopics(int indexOfSession, int numberTopics)(Code)
Verifies the number of temporary topics. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberTopics - the expected number of temporary topics
throws:
  VerifyFailedException - if verification fails



verifyNumberTopicPublishers
public void verifyNumberTopicPublishers(int indexOfSession, int numberOfPublishers)(Code)
Verifies the number of publishers for the specified session. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfPublishers - the expected number of publishers
throws:
  VerifyFailedException - if verification fails



verifyNumberTopicPublishers
public void verifyNumberTopicPublishers(int indexOfSession, String topicName, int numberOfPublishers)(Code)
Verifies the number of publishers for the specified session and the specified topic name. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  topicName - the name of the topic
Parameters:
  numberOfPublishers - the expected number of publishers
throws:
  VerifyFailedException - if verification fails



verifyNumberTopicSessions
public void verifyNumberTopicSessions(int number)(Code)
Verifies the number of topic sessions. The sessions have to be created using the current MockTopicConnection .
Parameters:
  number - the expected number of topic sessions
throws:
  VerifyFailedException - if verification fails



verifyNumberTopicSubscribers
public void verifyNumberTopicSubscribers(int indexOfSession, int numberOfSubscribers)(Code)
Verifies the number of subscribers for the specified session. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfSubscribers - the expected number of subscribers
throws:
  VerifyFailedException - if verification fails



verifyNumberTopicSubscribers
public void verifyNumberTopicSubscribers(int indexOfSession, String topicName, int numberOfSubscribers)(Code)
Verifies the number of subscribers for the specified session and the specified topic name. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  topicName - the name of the topic
Parameters:
  numberOfSubscribers - the expected number of subscribers
throws:
  VerifyFailedException - if verification fails



verifyQueueBrowserClosed
public void verifyQueueBrowserClosed(int indexOfSession, String queueName, int indexOfBrowser)(Code)
Verifies that the specified browser is closed. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  queueName - the name of the queue
Parameters:
  indexOfBrowser - the index of the browser
throws:
  VerifyFailedException - if verification fails



verifyQueueConnectionClosed
public void verifyQueueConnectionClosed()(Code)
Verifies that the current MockQueueConnection is closed. The connection has to be created using the current MockQueueConnectionFactory .
throws:
  VerifyFailedException - if verification fails



verifyQueueConnectionStarted
public void verifyQueueConnectionStarted()(Code)
Verifies that the current MockQueueConnection is started. The connection has to be created using the current MockQueueConnectionFactory .
throws:
  VerifyFailedException - if verification fails



verifyQueueConnectionStopped
public void verifyQueueConnectionStopped()(Code)
Verifies that the current MockQueueConnection is stopped. The connection has to be created using the current MockQueueConnectionFactory .
throws:
  VerifyFailedException - if verification fails



verifyQueueReceiverClosed
public void verifyQueueReceiverClosed(int indexOfSession, String queueName, int indexOfReceiver)(Code)
Verifies that the specified receiver is closed. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  queueName - the name of the queue
Parameters:
  indexOfReceiver - the index of the receiver
throws:
  VerifyFailedException - if verification fails



verifyQueueSenderClosed
public void verifyQueueSenderClosed(int indexOfSession, String queueName, int indexOfSender)(Code)
Verifies that the specified sender is closed. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  queueName - the name of the queue
Parameters:
  indexOfSender - the index of the sender
throws:
  VerifyFailedException - if verification fails



verifyQueueSessionClosed
public void verifyQueueSessionClosed(int indexOfSession)(Code)
Verifies that the queue session with the specified index is closed. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyQueueSessionCommitted
public void verifyQueueSessionCommitted(int indexOfSession)(Code)
Verifies that the queue session with the specified index was committed. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyQueueSessionNotCommitted
public void verifyQueueSessionNotCommitted(int indexOfSession)(Code)
Verifies that the queue session with the specified index was not committed. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyQueueSessionNotRecovered
public void verifyQueueSessionNotRecovered(int indexOfSession)(Code)
Verifies that the queue session with the specified index was not recovered. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyQueueSessionNotRolledBack
public void verifyQueueSessionNotRolledBack(int indexOfSession)(Code)
Verifies that the queue session with the specified index was not rolled back. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyQueueSessionNumberCommits
public void verifyQueueSessionNumberCommits(int indexOfSession, int numberOfCommits)(Code)
Verifies the number of commits of the queue session with the specified index. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfCommits - the expected number of commits
throws:
  VerifyFailedException - if verification fails



verifyQueueSessionNumberRollbacks
public void verifyQueueSessionNumberRollbacks(int indexOfSession, int numberOfRollbacks)(Code)
Verifies the number of rollbacks of the queue session with the specified index. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfRollbacks - the expected number of rollbacks
throws:
  VerifyFailedException - if verification fails



verifyQueueSessionRecovered
public void verifyQueueSessionRecovered(int indexOfSession)(Code)
Verifies that the queue session with the specified index was recovered. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyQueueSessionRolledBack
public void verifyQueueSessionRolledBack(int indexOfSession)(Code)
Verifies that the queue session with the specified index was rolled back. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyReceivedQueueMessageAcknowledged
public void verifyReceivedQueueMessageAcknowledged(String nameOfQueue, int indexOfMessage)(Code)
Verifies that a received message is acknowledged.
Parameters:
  nameOfQueue - the name of the queue
Parameters:
  indexOfMessage - the index of the received message
throws:
  VerifyFailedException - if verification fails



verifyReceivedQueueMessageAcknowledged
public void verifyReceivedQueueMessageAcknowledged(int indexOfSession, int indexOfQueue, int indexOfMessage)(Code)
Verifies that message received by a temporary queue is acknowledged. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfQueue - the index of the temporary queue
Parameters:
  indexOfMessage - the index of the received message
throws:
  VerifyFailedException - if verification fails



verifyReceivedQueueMessageEquals
public void verifyReceivedQueueMessageEquals(String nameOfQueue, int indexOfSourceMessage, MockMessage targetMessage)(Code)
Verifies that a received message is equal to the specified message by calling the equals() method. All mock messages provide a suitable implementation of equals().
Parameters:
  nameOfQueue - the name of the queue
Parameters:
  indexOfSourceMessage - the index of the received message
Parameters:
  targetMessage - the message that will be used for comparison
throws:
  VerifyFailedException - if verification fails



verifyReceivedQueueMessageEquals
public void verifyReceivedQueueMessageEquals(int indexOfSession, int indexOfQueue, int indexOfSourceMessage, MockMessage targetMessage)(Code)
Verifies that a message received by a temporary queue is equal to the specified message by calling the equals() method. All mock messages provide a suitable implementation of equals(). The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfQueue - the index of the temporary queue
Parameters:
  indexOfSourceMessage - the index of the received message
Parameters:
  targetMessage - the message that will be used for comparison
throws:
  VerifyFailedException - if verification fails



verifyReceivedQueueMessageNotAcknowledged
public void verifyReceivedQueueMessageNotAcknowledged(String nameOfQueue, int indexOfMessage)(Code)
Verifies that a received message is not acknowledged.
Parameters:
  nameOfQueue - the name of the queue
Parameters:
  indexOfMessage - the index of the received message
throws:
  VerifyFailedException - if verification fails



verifyReceivedQueueMessageNotAcknowledged
public void verifyReceivedQueueMessageNotAcknowledged(int indexOfSession, int indexOfQueue, int indexOfMessage)(Code)
Verifies that a received by a temporary queue is not acknowledged. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfQueue - the index of the temporary queue
Parameters:
  indexOfMessage - the index of the received message
throws:
  VerifyFailedException - if verification fails



verifyReceivedTopicMessageAcknowledged
public void verifyReceivedTopicMessageAcknowledged(String nameOfTopic, int indexOfMessage)(Code)
Verifies that a received message is acknowledged.
Parameters:
  nameOfTopic - the name of the topic
Parameters:
  indexOfMessage - the index of the received message
throws:
  VerifyFailedException - if verification fails



verifyReceivedTopicMessageAcknowledged
public void verifyReceivedTopicMessageAcknowledged(int indexOfSession, int indexOfTopic, int indexOfMessage)(Code)
Verifies that a message received by a temporary topic is acknowledged. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfTopic - the index of the temporary topic
Parameters:
  indexOfMessage - the index of the received message
throws:
  VerifyFailedException - if verification fails



verifyReceivedTopicMessageEquals
public void verifyReceivedTopicMessageEquals(String nameOfTopic, int indexOfSourceMessage, MockMessage targetMessage)(Code)
Verifies that a received message is equal to the specified message by calling the equals() method. All mock messages provide a suitable implementation of equals().
Parameters:
  nameOfTopic - the name of the topic
Parameters:
  indexOfSourceMessage - the index of the received message
Parameters:
  targetMessage - the message that will be used for comparison
throws:
  VerifyFailedException - if verification fails



verifyReceivedTopicMessageEquals
public void verifyReceivedTopicMessageEquals(int indexOfSession, int indexOfTopic, int indexOfSourceMessage, MockMessage targetMessage)(Code)
Verifies that a message received by a temporary topic is equal to the specified message by calling the equals() method. All mock messages provide a suitable implementation of equals(). The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfTopic - the index of the temporary topic
Parameters:
  indexOfSourceMessage - the index of the received message
Parameters:
  targetMessage - the message that will be used for comparison
throws:
  VerifyFailedException - if verification fails



verifyReceivedTopicMessageNotAcknowledged
public void verifyReceivedTopicMessageNotAcknowledged(String nameOfTopic, int indexOfMessage)(Code)
Verifies that a received message is not acknowledged.
Parameters:
  nameOfTopic - the name of the topic
Parameters:
  indexOfMessage - the index of the received message
throws:
  VerifyFailedException - if verification fails



verifyReceivedTopicMessageNotAcknowledged
public void verifyReceivedTopicMessageNotAcknowledged(int indexOfSession, int indexOfTopic, int indexOfMessage)(Code)
Verifies that a message received by a temporary topic is not acknowledged. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfTopic - the index of the temporary topic
Parameters:
  indexOfMessage - the index of the received message
throws:
  VerifyFailedException - if verification fails



verifySessionClosed
public void verifySessionClosed(int indexOfSession)(Code)
Verifies that the session with the specified index is closed. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifySessionCommitted
public void verifySessionCommitted(int indexOfSession)(Code)
Verifies that the session with the specified index was committed. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifySessionNotCommitted
public void verifySessionNotCommitted(int indexOfSession)(Code)
Verifies that the session with the specified index was not committed. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifySessionNotRecovered
public void verifySessionNotRecovered(int indexOfSession)(Code)
Verifies that the session with the specified index was not recovered. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifySessionNotRolledBack
public void verifySessionNotRolledBack(int indexOfSession)(Code)
Verifies that the session with the specified index was not rolled back. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifySessionNumberCommits
public void verifySessionNumberCommits(int indexOfSession, int numberOfCommits)(Code)
Verifies the number of commits of session with the specified index. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfCommits - the expected number of commits
throws:
  VerifyFailedException - if verification fails



verifySessionNumberRollbacks
public void verifySessionNumberRollbacks(int indexOfSession, int numberOfRollbacks)(Code)
Verifies the number of rollbacks of session with the specified index. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfRollbacks - the expected number of rollbacks
throws:
  VerifyFailedException - if verification fails



verifySessionRecovered
public void verifySessionRecovered(int indexOfSession)(Code)
Verifies that the session with the specified index was recovered. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifySessionRolledBack
public void verifySessionRolledBack(int indexOfSession)(Code)
Verifies that the session with the specified index was rolled back. The session has to be created using the current MockConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyTemporaryQueueDeleted
public void verifyTemporaryQueueDeleted(int indexOfSession, int indexOfQueue)(Code)
Verifies that the temporary queue with the specified index was deleted. The session has to be created using the current MockQueueConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfQueue - the index of the queue
throws:
  VerifyFailedException - if verification fails



verifyTemporaryTopicDeleted
public void verifyTemporaryTopicDeleted(int indexOfSession, int indexOfTopic)(Code)
Verifies that the temporary topic with the specified index was closed. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  indexOfTopic - the index of the topic
throws:
  VerifyFailedException - if verification fails



verifyTopicConnectionClosed
public void verifyTopicConnectionClosed()(Code)
Verifies that the current MockTopicConnection is closed. The connection has to be created using the current MockTopicConnectionFactory .
throws:
  VerifyFailedException - if verification fails



verifyTopicConnectionStarted
public void verifyTopicConnectionStarted()(Code)
Verifies that the current MockTopicConnection is started. The connection has to be created using the current MockTopicConnectionFactory .
throws:
  VerifyFailedException - if verification fails



verifyTopicConnectionStopped
public void verifyTopicConnectionStopped()(Code)
Verifies that the current MockTopicConnection is stopped. The connection has to be created using the current MockTopicConnectionFactory .
throws:
  VerifyFailedException - if verification fails



verifyTopicPublisherClosed
public void verifyTopicPublisherClosed(int indexOfSession, String topicName, int indexOfPublisher)(Code)
Verifies that the specified publisher is closed. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  topicName - the name of the topic
Parameters:
  indexOfPublisher - the index of the publisher
throws:
  VerifyFailedException - if verification fails



verifyTopicSessionClosed
public void verifyTopicSessionClosed(int indexOfSession)(Code)
Verifies that the topic session with the specified index is closed. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyTopicSessionCommitted
public void verifyTopicSessionCommitted(int indexOfSession)(Code)
Verifies that the topic session with the specified index was committed. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyTopicSessionNotCommitted
public void verifyTopicSessionNotCommitted(int indexOfSession)(Code)
Verifies that the topic session with the specified index was not committed. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyTopicSessionNotRecovered
public void verifyTopicSessionNotRecovered(int indexOfSession)(Code)
Verifies that the topic session with the specified index was not recovered. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyTopicSessionNotRolledBack
public void verifyTopicSessionNotRolledBack(int indexOfSession)(Code)
Verifies that the topic session with the specified index was not rolled back. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyTopicSessionNumberCommits
public void verifyTopicSessionNumberCommits(int indexOfSession, int numberOfCommits)(Code)
Verifies the number of commits of the topic session with the specified index. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfCommits - the expected number of commits
throws:
  VerifyFailedException - if verification fails



verifyTopicSessionNumberRollbacks
public void verifyTopicSessionNumberRollbacks(int indexOfSession, int numberOfRollbacks)(Code)
Verifies the number of rollbacks of the topic session with the specified index. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  numberOfRollbacks - the expected number of rollbacks
throws:
  VerifyFailedException - if verification fails



verifyTopicSessionRecovered
public void verifyTopicSessionRecovered(int indexOfSession)(Code)
Verifies that the topic session with the specified index was recovered. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyTopicSessionRolledBack
public void verifyTopicSessionRolledBack(int indexOfSession)(Code)
Verifies that the topic session with the specified index was rolled back. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
throws:
  VerifyFailedException - if verification fails



verifyTopicSubscriberClosed
public void verifyTopicSubscriberClosed(int indexOfSession, String topicName, int indexOfSubscriber)(Code)
Verifies that the specified subscriber is closed. The session has to be created using the current MockTopicConnection .
Parameters:
  indexOfSession - the index of the session
Parameters:
  topicName - the name of the topic
Parameters:
  indexOfSubscriber - the index of the receiver
throws:
  VerifyFailedException - if verification fails



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.