public class BootstrapConnectionFactoryTest extends Object
BootstrapConnectionFactory.| Modifier and Type | Field and Description |
|---|---|
static char[] |
PASSWORD
A test password.
|
static String |
USER_NAME
A test user name.
|
| Constructor and Description |
|---|
BootstrapConnectionFactoryTest() |
public static final char[] PASSWORD
public static final String USER_NAME
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()
throws IOException
IOException - On a failure to shutdown the test connection.public void testBootstrapAllFail()
BootstrapConnectionFactory.bootstrap() .public void testBootstrapInterrupted()
throws UnknownHostException
BootstrapConnectionFactory.bootstrap() .UnknownHostException - On a failure to resolve localhost.public void testBootstrapNotOkReply()
throws UnknownHostException
BootstrapConnectionFactory.bootstrap() .UnknownHostException - On a failure to resolve localhost.public void testBootstrapReplicaSet()
BootstrapConnectionFactory.bootstrap() .public void testBootstrapSharded()
BootstrapConnectionFactory.bootstrap() .public void testBootstrapStandalone()
BootstrapConnectionFactory.bootstrap() .public void testBootstrapStandaloneFirstFails()
BootstrapConnectionFactory.bootstrap() .public void testBootstrapStandaloneWithAuth()
BootstrapConnectionFactory.bootstrap() .public void testClose()
throws IOException
BootstrapConnectionFactory.close() .IOException - On a failure connecting to the Mock MongoDB server.public void testConnect()
BootstrapConnectionFactory.connect() .Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.