01: package com.mockrunner.test.connector;
02:
03: import com.mockrunner.connector.BasicConnectorTestCaseAdapter;
04: import com.mockrunner.mock.connector.cci.ConnectorMockObjectFactory;
05:
06: public class BasicConnectorTestCaseAdapterTest extends
07: BasicConnectorTestCaseAdapter {
08: public void testSetJMSFactory() {
09: ConnectorMockObjectFactory connectorFactory = new ConnectorMockObjectFactory();
10: setConnectorMockObjectFactory(connectorFactory);
11: assertSame(connectorFactory, getConnectorMockObjectFactory());
12: setConnectorMockObjectFactory(null);
13: assertNotNull(getConnectorMockObjectFactory());
14: assertNotSame(connectorFactory, getConnectorMockObjectFactory());
15: }
16: }
|