01: package com.mockrunner.test.jms;
02:
03: import com.mockrunner.jms.BasicJMSTestCaseAdapter;
04: import com.mockrunner.mock.jms.JMSMockObjectFactory;
05:
06: public class BasicJMSTestCaseAdapterTest extends
07: BasicJMSTestCaseAdapter {
08: public void testSetJMSFactory() {
09: JMSMockObjectFactory jmsFactory = new JMSMockObjectFactory();
10: setJMSMockObjectFactory(jmsFactory);
11: assertSame(jmsFactory, getJMSMockObjectFactory());
12: setJMSMockObjectFactory(null);
13: assertNotNull(getJMSMockObjectFactory());
14: assertNotSame(jmsFactory, getJMSMockObjectFactory());
15: }
16: }
|