public class SimpleReconnectStrategyTest extends Object
SimpleReconnectStrategy
class.Constructor and Description |
---|
SimpleReconnectStrategyTest() |
Modifier and Type | Method and Description |
---|---|
void |
testReconnect()
Test method for
SimpleReconnectStrategy.reconnect(Connection) . |
void |
testReconnectBackWorks()
Test method for
SimpleReconnectStrategy.reconnect(Connection) . |
void |
testReconnectFails()
Test method for
SimpleReconnectStrategy.reconnect(Connection) . |
void |
testReconnectFirstFails()
Test method for
SimpleReconnectStrategy.reconnect(Connection) . |
void |
testReconnectPingFails()
Test method for
SimpleReconnectStrategy.reconnect(Connection) . |
public void testReconnect() throws IOException, InterruptedException
SimpleReconnectStrategy.reconnect(Connection)
.IOException
- On a Failure setting up the mock configuration for the test.InterruptedException
- On a Failure setting up the mock configuration for the test.public void testReconnectBackWorks() throws IOException, InterruptedException
SimpleReconnectStrategy.reconnect(Connection)
.IOException
- On a Failure setting up the mock configuration for the test.InterruptedException
- On a Failure setting up the mock configuration for the test.public void testReconnectFails() throws IOException
SimpleReconnectStrategy.reconnect(Connection)
.IOException
- On a failure setting up the mocks.public void testReconnectFirstFails() throws IOException, InterruptedException
SimpleReconnectStrategy.reconnect(Connection)
.IOException
- On a Failure setting up the mock configuration for the test.InterruptedException
- On a Failure setting up the mock configuration for the test.public void testReconnectPingFails() throws IOException
SimpleReconnectStrategy.reconnect(Connection)
.IOException
- On a Failure setting up the mock configuration for the test.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.