public class UnresponsiveServerIntegrationTests extends UnresponsiveMockServerTestBase
server
Constructor and Description |
---|
UnresponsiveServerIntegrationTests() |
Modifier and Type | Method and Description |
---|---|
void |
clientExecutionTimeoutDisabled_SocketTimeoutExceptionIsThrown_NoThreadsCreated() |
void |
clientExecutionTimeoutEnabled_WithLongerSocketTimeout_ThrowsClientExecutionTimeoutException() |
void |
clientExecutionTimeoutEnabled_WithShorterClientExecutionTimeout_ThrowsClientExecutionTimeoutException() |
void |
clientExecutionTimeoutEnabled_WithShorterRequestTimeout_ThrowsHttpRequestTimeoutException() |
void |
clientExecutionTimeoutEnabled_WithShorterRequestTimeoutAndRetry_ThrowsClientExecutionTimeoutException() |
void |
clientExecutionTimeoutEnabled_WithShorterSocketTimeout_ThrowsSocketTimeoutException() |
void |
interruptCausedBySomethingOtherThanTimer_PropagatesInterruptToCaller()
The client execution timer uses interrupts to abort the client but if another thread
interrupts the current thread for another reason we don't want to squash the
InterruptedException . |
static void |
preConditions() |
buildMockServer
newGetRequest, setupBaseFixture, tearDownBaseFixture
public static void preConditions()
public void clientExecutionTimeoutDisabled_SocketTimeoutExceptionIsThrown_NoThreadsCreated()
public void interruptCausedBySomethingOtherThanTimer_PropagatesInterruptToCaller()
InterruptedException
. We should set the thread's interrupted status and throw the
exception back out (we can't throw the actual InterruptedException
because it's
checked)public void clientExecutionTimeoutEnabled_WithLongerSocketTimeout_ThrowsClientExecutionTimeoutException() throws IOException
IOException
public void clientExecutionTimeoutEnabled_WithShorterSocketTimeout_ThrowsSocketTimeoutException() throws IOException
IOException
public void clientExecutionTimeoutEnabled_WithShorterClientExecutionTimeout_ThrowsClientExecutionTimeoutException() throws IOException
IOException
public void clientExecutionTimeoutEnabled_WithShorterRequestTimeout_ThrowsHttpRequestTimeoutException() throws IOException
IOException
public void clientExecutionTimeoutEnabled_WithShorterRequestTimeoutAndRetry_ThrowsClientExecutionTimeoutException() throws IOException
IOException
Copyright © 2018. All rights reserved.