public class SocketConnectionFactoryTest extends Object
SocketConnectionFactory class.| Constructor and Description |
|---|
SocketConnectionFactoryTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setUpBeforeClass()
Starts a Mock MongoDB server.
|
void |
tearDown()
Cleans up the test server.
|
static void |
tearDownAfterClass()
Stops a Mock MongoDB server.
|
void |
testClose()
Test method for
SocketConnectionFactory.close() . |
void |
testConnect()
Test method for
SocketConnectionFactory.connect() . |
void |
testConnectFailure()
Test method for
SocketConnectionFactory.connect() . |
void |
testConnectFailureNoAddresses()
Test method for
SocketConnectionFactory.connect() . |
void |
testConnectWithModeSendReceive()
Test method for
SocketConnectionFactory.connect() . |
void |
testGetClusterType()
Test method for
SocketConnectionFactory.getClusterType(). |
public static void setUpBeforeClass()
throws IOException
IOException - On a failure to start the Mock MongoDB server.public static void tearDownAfterClass()
throws IOException
IOException - On a failure to stop the Mock MongoDB server.public void tearDown()
public void testClose()
throws IOException
SocketConnectionFactory.close() .IOException - On a failure connecting to the Mock MongoDB server.public void testConnect()
throws IOException
SocketConnectionFactory.connect() .IOException - On a failure connecting to the Mock MongoDB server.public void testConnectFailure()
throws IOException
SocketConnectionFactory.connect() .IOException - On a failure connecting to the Mock MongoDB server.public void testConnectFailureNoAddresses()
throws IOException
SocketConnectionFactory.connect() .IOException - On a failure connecting to the Mock MongoDB server.public void testConnectWithModeSendReceive()
throws IOException
SocketConnectionFactory.connect() .IOException - On a failure connecting to the Mock MongoDB server.public void testGetClusterType()
throws IOException
SocketConnectionFactory.getClusterType().IOException - on a test failure.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.