public class AuthenticationConnectionFactoryTest extends Object
AuthenticationConnectionFactory
.Constructor and Description |
---|
AuthenticationConnectionFactoryTest() |
Modifier and Type | Method and Description |
---|---|
void |
tearDown()
Cleans up the test connection.
|
void |
testClose()
Test method for
AuthenticationConnectionFactory.close() . |
void |
testConnect()
Test method for
AuthenticationConnectionFactory.connect() . |
void |
testConnectInetSocketAddressMongoDbConfiguration()
|
void |
testGetClusterType()
Test method for
AuthenticationConnectionFactory.getClusterType() . |
void |
testGetReconnectStrategy()
Test method for
AuthenticationConnectionFactory.getReconnectStrategy() . |
public void tearDown() throws IOException
IOException
- On a failure to shutdown the test connection.public void testClose() throws IOException
AuthenticationConnectionFactory.close()
.IOException
- On a failure connecting to the Mock MongoDB server.public void testConnect() throws IOException
AuthenticationConnectionFactory.connect()
.IOException
- On a failure setting up the test mocks.public void testConnectInetSocketAddressMongoDbConfiguration() throws IOException
IOException
- On a test failure setting up mocks.public void testGetClusterType() throws IOException
AuthenticationConnectionFactory.getClusterType()
.IOException
- on a test failure.public void testGetReconnectStrategy()
AuthenticationConnectionFactory.getReconnectStrategy()
.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.