|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockrunner.mock.jms.JMSMockObjectFactory
public class JMSMockObjectFactory
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 that they are all
up to date. If you are using JNDI for obtaining the
connection factories you have to bind them to the mock JNDI context
with EJBTestModule.bindToContext(java.lang.String, java.lang.Object)
.
Constructor Summary | |
---|---|
JMSMockObjectFactory()
Creates a new set of mock objects. |
Method Summary | |
---|---|
MockConnectionFactory |
createMockConnectionFactory()
Creates the MockConnectionFactory using new . |
MockQueueConnectionFactory |
createMockQueueConnectionFactory()
Creates the MockQueueConnectionFactory using new . |
MockTopicConnectionFactory |
createMockTopicConnectionFactory()
Creates the MockTopicConnectionFactory using new . |
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 |
---|
public JMSMockObjectFactory()
Method Detail |
---|
public MockConnectionFactory createMockConnectionFactory()
MockConnectionFactory
using new
.
This method can be overridden to return a subclass of MockConnectionFactory
.
MockConnectionFactory
public MockTopicConnectionFactory createMockTopicConnectionFactory()
MockTopicConnectionFactory
using new
.
This method can be overridden to return a subclass of MockTopicConnectionFactory
.
MockTopicConnectionFactory
public MockQueueConnectionFactory createMockQueueConnectionFactory()
MockQueueConnectionFactory
using new
.
This method can be overridden to return a subclass of MockQueueConnectionFactory
.
MockQueueConnectionFactory
public ConfigurationManager getConfigurationManager()
ConfigurationManager
.
ConfigurationManager
public DestinationManager getDestinationManager()
DestinationManager
.
DestinationManager
public MockQueueConnectionFactory getMockQueueConnectionFactory()
MockQueueConnectionFactory
.
MockQueueConnectionFactory
public MockTopicConnectionFactory getMockTopicConnectionFactory()
MockTopicConnectionFactory
.
MockTopicConnectionFactory
public MockConnectionFactory getMockConnectionFactory()
MockConnectionFactory
.
MockConnectionFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |