public class TestBlockUntilConnected extends BaseClassForTests
server
Constructor and Description |
---|
TestBlockUntilConnected() |
Modifier and Type | Method and Description |
---|---|
void |
testBlockUntilConnectedConnectTimeout()
Test the case where we are not currently connected and time out before a
connection becomes available.
|
void |
testBlockUntilConnectedCurrentlyAwaitingReconnect()
Test the case where we are not currently connected, but have been previously
|
void |
testBlockUntilConnectedCurrentlyConnected()
Test the case where we're already connected
|
void |
testBlockUntilConnectedCurrentlyNeverConnected()
Test the case where we are not currently connected and never have been
|
void |
testBlockUntilConnectedInterrupt()
Test the case where we are not currently connected and the thread gets interrupted
prior to a connection becoming available
|
void |
testBlockUntilConnectedTightLoop()
Test that we are actually connected every time that we block until connection is established in a tight loop.
|
createAndStartCluster, createServer, setup, teardown
@Test public void testBlockUntilConnectedCurrentlyConnected() throws Exception
Exception
@Test public void testBlockUntilConnectedCurrentlyNeverConnected()
@Test public void testBlockUntilConnectedCurrentlyAwaitingReconnect()
@Test public void testBlockUntilConnectedConnectTimeout()
@Test public void testBlockUntilConnectedInterrupt()
@Test public void testBlockUntilConnectedTightLoop() throws InterruptedException
InterruptedException
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.