public class ClusterPingerTest extends Object
ClusterPinger class.| Modifier and Type | Class and Description |
|---|---|
class |
ClusterPingerTest.CloseAnswer<C>
A specialized
IAnswer to close the pinger. |
class |
ClusterPingerTest.CloseCallbackReply
A specialized callback reply to close the pinger when a value is set.
|
| Modifier and Type | Field and Description |
|---|---|
protected ClusterPinger |
myPinger
The pinger being tested.
|
| Constructor and Description |
|---|
ClusterPingerTest() |
protected ClusterPinger myPinger
public void tearDown()
public void testInitialSweep()
throws IOException
ClusterPinger.initialSweep(Cluster).IOException - On a failure setting up the mocks.public void testInitialSweepCannotGiveBackConnection()
throws IOException
ClusterPinger.initialSweep(Cluster).IOException - On a failure setting up the mocks.public void testInitialSweepFails()
throws IOException
ClusterPinger.initialSweep(Cluster).IOException - On a failure setting up the mocks.public void testInitialSweepReplicaSet()
throws IOException
ClusterPinger.initialSweep(Cluster).IOException - On a failure setting up the mocks.public void testInitialSweepThrowsIOException()
throws IOException
ClusterPinger.initialSweep(Cluster).IOException - On a failure setting up the mocks.public void testInitialSweepThrowsMongoDdException()
throws IOException
ClusterPinger.initialSweep(Cluster).IOException - On a failure setting up the mocks.public void testInitialSweepWhenInterrupted()
throws IOException,
InterruptedException
ClusterPinger.initialSweep(Cluster).IOException - On a failure setting up the mocks.InterruptedException - On a failure to sleep in the test.public void testRun()
throws IOException
ClusterPinger.run().IOException - On a failure setting up the mocks.public void testRunBadPingReply()
throws IOException
ClusterPinger.run().IOException - On a failure setting up the mocks.public void testRunCannotGiveConnectionBack()
throws IOException,
InterruptedException
ClusterPinger.run().IOException - On a failure setting up the mocks.InterruptedException - On a failure to sleep.public void testRunInThread()
throws IOException,
InterruptedException
ClusterPinger.run().IOException - On a failure setting up the mocks.InterruptedException - On a failure to sleep.public void testRunNoTags()
throws IOException
ClusterPinger.run().IOException - On a failure setting up the mocks.public void testRunPingFails()
throws IOException
ClusterPinger.run().IOException - On a failure setting up the mocks.public void testRunSweepTwice()
throws IOException,
InterruptedException
ClusterPinger.run().IOException - On a failure setting up the mocks.InterruptedException - On a failure to sleep.public void testRunSweepTwiceIdleConnection()
throws IOException,
InterruptedException
ClusterPinger.run().IOException - On a failure setting up the mocks.InterruptedException - On a failure to sleep.public void testRunSweepTwiceNotGiveBackConnection()
throws IOException,
InterruptedException
ClusterPinger.run().IOException - On a failure setting up the mocks.InterruptedException - On a failure to sleep.public void testRunThrowsIOException()
throws IOException
ClusterPinger.run().IOException - On a failure setting up the mocks.public void testRunThrowsMongoDbException()
throws IOException
ClusterPinger.run().IOException - On a failure setting up the mocks.public void testRunWhenInterrupted()
throws IOException,
InterruptedException
ClusterPinger.run().IOException - On a failure setting up the mocks.InterruptedException - On a failure to sleep.protected <C> org.easymock.IAnswer<C> a(C reply)
reply - The reply to return.protected org.easymock.IAnswer<Connection> a(Throwable reply)
reply - The reply to throw.protected ReplyCallback cbAndClose(DocumentBuilder... builders)
builders - The reply to provide to the callback.protected ReplyCallback cbAndClose(Reply reply)
reply - The reply to provide to the callback.protected ReplyCallback cbAndClose(Throwable error)
error - The error to provide to the callback.protected ReplyCallback cbAndCloseError()
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.