Package net.shibboleth.shared.httpclient
Class ContextHandlingHttpClientTest
java.lang.Object
net.shibboleth.shared.httpclient.ContextHandlingHttpClientTest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static classstatic classprivate classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hc.client5.http.protocol.HttpClientContextprivate org.apache.hc.core5.http.ClassicHttpRequestprivate org.apache.hc.core5.http.io.HttpClientResponseHandler<Object>static final Objectstatic final org.apache.hc.core5.http.ClassicHttpResponseprivate org.apache.hc.core5.http.HttpHost -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
STATIC_RESPONSE_HTTP
public static final org.apache.hc.core5.http.ClassicHttpResponse STATIC_RESPONSE_HTTP -
STATIC_RESPONSE_HANDLER
-
client
-
staticOne
-
staticTwo
-
staticThree
-
dynamicOne
-
dynamicTwo
-
dynamicThree
-
context
private org.apache.hc.client5.http.protocol.HttpClientContext context -
request
private org.apache.hc.core5.http.ClassicHttpRequest request -
target
private org.apache.hc.core5.http.HttpHost target -
responseHandler
-
-
Constructor Details
-
ContextHandlingHttpClientTest
public ContextHandlingHttpClientTest()
-
-
Method Details
-
setupClass
@BeforeClass public void setupClass() -
setupMethod
@BeforeMethod public void setupMethod() -
testNoHandlers
- Throws:
IOException
-
testStaticOnly
- Throws:
IOException
-
testDynamicOnly
- Throws:
IOException
-
testStaticAndDynamic
- Throws:
IOException
-
testWrappedClientThrowsIOException
- Throws:
IOException
-
testWrappedClientThrowsRuntimeException
- Throws:
IOException
-
testWrappedClientThrowsError
- Throws:
IOException
-
testSingleStaticHandlerInvokeBeforeThrowsIOException
- Throws:
IOException
-
testSingleStaticHandlerInvokeAfterThrowsIOException
- Throws:
IOException
-
testSingleStaticHandlerInvokeBeforeThrowsRuntimeException
- Throws:
IOException
-
testSingleStaticHandlerInvokeAfterThrowsRuntimeException
- Throws:
IOException
-
testMultipleStaticHandlersInvokeBeforeThrowIOException
- Throws:
IOException
-
testMultipleStaticHandlersInvokeBeforeThrowRuntimeException
- Throws:
IOException
-
testMultipleStaticHandlersInvokeAfterThrowIOException
- Throws:
IOException
-
testMultipleStaticHandlersInvokeAfterThrowRuntimeException
- Throws:
IOException
-
testSingleDynamicHandlerInvokeBeforeThrowsIOException
- Throws:
IOException
-
testSingleDynamicHandlerInvokeAfterThrowsIOException
- Throws:
IOException
-
testSingleDynamicHandlerInvokeBeforeThrowsRuntimeException
- Throws:
IOException
-
testSingleDynamicHandlerInvokeAfterThrowsRuntimeException
- Throws:
IOException
-
testMultipleDynamicHandlersInvokeBeforeThrowIOException
- Throws:
IOException
-
testMultipleDynamicHandlersInvokeBeforeThrowRuntimeException
- Throws:
IOException
-
testMultipleDynamicHandlersInvokeAfterThrowIOException
- Throws:
IOException
-
testMultipleDynamicHandlersInvokeAfterThrowRuntimeException
- Throws:
IOException
-
testStaticAndDynamicHandlersThrowIOException
- Throws:
IOException
-
testStaticAndDynamicHandlersThrowRuntimeException
- Throws:
IOException
-
testWrappedClientThrowsIOExceptionInvokeAfterThrowsIOException
- Throws:
IOException
-