com.mockrunner.test.connector.BasicConnectorTestCaseAdapterTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockrunner-jca Show documentation
Show all versions of mockrunner-jca Show documentation
Mock classes for Java Connector Architecture
package com.mockrunner.test.connector;
import com.mockrunner.connector.BasicConnectorTestCaseAdapter;
import com.mockrunner.mock.connector.cci.ConnectorMockObjectFactory;
public class BasicConnectorTestCaseAdapterTest extends BasicConnectorTestCaseAdapter
{
public void testSetJMSFactory()
{
ConnectorMockObjectFactory connectorFactory = new ConnectorMockObjectFactory();
setConnectorMockObjectFactory(connectorFactory);
assertSame(connectorFactory, getConnectorMockObjectFactory());
setConnectorMockObjectFactory(null);
assertNotNull(getConnectorMockObjectFactory());
assertNotSame(connectorFactory, getConnectorMockObjectFactory());
}
}