public class ShardedConnectionFactoryTest extends Object
ShardedConnectionFactory.| Constructor and Description |
|---|
ShardedConnectionFactoryTest() |
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 testBootstrap()
ShardedConnectionFactory.bootstrap().public void testBootstrapNoDiscover()
ShardedConnectionFactory.bootstrap().public void testBootstrapThrowsExecutionError()
throws IOException
ShardedConnectionFactory.bootstrap().IOException - On a failure.public void testBootstrapThrowsInterruptedException()
throws IOException
ShardedConnectionFactory.bootstrap().IOException - On a failure.public void testBootstrapThrowsIOError()
throws IOException
ShardedConnectionFactory.bootstrap().IOException - On a failure.public void testBootstrapThrowsMongoDbExecption()
throws IOException
ShardedConnectionFactory.bootstrap().IOException - On a failure.public void testBootstrapThrowsMongoError()
throws IOException
ShardedConnectionFactory.bootstrap().IOException - On a failure.public void testClose()
throws IOException
ShardedConnectionFactory.close() .IOException - On a failure connecting to the Mock MongoDB server.public void testConnect()
throws IOException
ShardedConnectionFactory.connect().IOException - On a failure.public void testConnectFails()
throws IOException,
InterruptedException
ShardedConnectionFactory.connect().IOException - On a failure.InterruptedException - On a failure to sleep in the test.public void testConnectNoServer()
ShardedConnectionFactory.connect().public void testConnectOnIOException()
throws IOException
ShardedConnectionFactory.connect().IOException - On a failure.public void testConnectTwoServers()
throws IOException
ShardedConnectionFactory.connect().IOException - On a failure.public void testGetClusterType()
ShardedConnectionFactory.getClusterType().public void testGetReconnectStrategy()
ShardedConnectionFactory.getReconnectStrategy().Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.