com.mockrunner.mock.jms
Class JMSMockObjectFactory

java.lang.Object
  extended bycom.mockrunner.mock.jms.JMSMockObjectFactory

public class JMSMockObjectFactory
extends java.lang.Object

Used to create all types of JMS mock objects. Maintains the necessary dependencies between the mock objects. If you use the mock objects returned by this factory in your tests you can be sure, they are all up to date. If you are using JNDI for obtaining the factories you have to bind them to the mock context with EJBTestModule.bindToContext(java.lang.String, java.lang.Object).


Constructor Summary
JMSMockObjectFactory()
          Creates a new set of mock objects.
 
Method Summary
 ConfigurationManager getConfigurationManager()
          Returns the ConfigurationManager.
 DestinationManager getDestinationManager()
          Returns the DestinationManager.
 MockConnectionFactory getMockConnectionFactory()
          Returns the MockConnectionFactory.
 MockQueueConnectionFactory getMockQueueConnectionFactory()
          Returns the MockQueueConnectionFactory.
 MockTopicConnectionFactory getMockTopicConnectionFactory()
          Returns the MockTopicConnectionFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSMockObjectFactory

public JMSMockObjectFactory()
Creates a new set of mock objects.

Method Detail

getConfigurationManager

public ConfigurationManager getConfigurationManager()
Returns the ConfigurationManager.

Returns:
the ConfigurationManager

getDestinationManager

public DestinationManager getDestinationManager()
Returns the DestinationManager.

Returns:
the DestinationManager

getMockQueueConnectionFactory

public MockQueueConnectionFactory getMockQueueConnectionFactory()
Returns the MockQueueConnectionFactory.

Returns:
the MockQueueConnectionFactory

getMockTopicConnectionFactory

public MockTopicConnectionFactory getMockTopicConnectionFactory()
Returns the MockTopicConnectionFactory.

Returns:
the MockTopicConnectionFactory

getMockConnectionFactory

public MockConnectionFactory getMockConnectionFactory()
Returns the MockConnectionFactory.

Returns:
the MockConnectionFactory