public class ReplicaSetConnectionFactoryTest extends Object
ReplicaSetConnectionFactory.| Constructor and Description |
|---|
ReplicaSetConnectionFactoryTest() |
public static final boolean driverThreadRunning()
public static void setUpServer()
throws IOException
IOException - On a failure to start the Mock MongoDB server.public static void tearDownClass()
throws IOException
IOException - On a failure to shutdown the test connection.public void setUp()
throws IOException
IOException - On a failure to start the Mock MongoDB server.public void tearDown()
throws IOException
IOException - On a failure to shutdown the test connection.public void testBootstrap()
ReplicaSetConnectionFactory.bootstrap().public void testBootstrapAddPrimary()
ReplicaSetConnectionFactory.bootstrap().public void testBootstrapNoDiscover()
ReplicaSetConnectionFactory.bootstrap().public void testBootstrapNoPrimary()
ReplicaSetConnectionFactory.bootstrap().public void testBootstrapNoReplyDocs()
ReplicaSetConnectionFactory.bootstrap().public void testClose()
throws IOException
ReplicaSetConnectionFactory.close() .IOException - On a failure connecting to the Mock MongoDB server.public void testConnect()
throws IOException
ReplicaSetConnectionFactory.connect().IOException - On a failure.public void testConnectFails()
throws IOException,
InterruptedException
ReplicaSetConnectionFactory.connect().IOException - On a failure.InterruptedException - On a failure.public void testConnectNoServer()
ReplicaSetConnectionFactory.connect().public void testConnectReplyWeird()
throws IOException,
InterruptedException
ReplicaSetConnectionFactory.connect().IOException - On a failure.InterruptedException - On a failure.public void testConnectThrowsExecutionError()
throws IOException
ReplicaSetConnectionFactory.connect().IOException - On a failure.public void testConnectThrowsIOError()
throws IOException
ReplicaSetConnectionFactory.connect().IOException - On a failure.public void testConnectThrowsIOException()
throws IOException,
InterruptedException
ReplicaSetConnectionFactory.connect().IOException - On a failure.InterruptedException - On a failure.public void testConnectThrowsMongoError()
throws IOException
ReplicaSetConnectionFactory.connect().IOException - On a failure.public void testExceptionsInBootstrap()
throws IOException,
InterruptedException
ReplicaSetConnectionFactory.connect().IOException - On a failure.InterruptedException - On a failure.public void testGetClusterType()
throws IOException
ReplicaSetConnectionFactory.getClusterType().IOException - on a test failure.public void testGetReconnectStrategy()
ReplicaSetConnectionFactory.getReconnectStrategy().public void testInterruptedBootstrap()
throws IOException,
InterruptedException
ReplicaSetConnectionFactory.connect().IOException - On a failure.InterruptedException - On a failure.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.