public class JsonErrorResponseHandlerTest extends Object
| Constructor and Description |
|---|
JsonErrorResponseHandlerTest(boolean hasAwsQueryCompatible,
String queryErrorHeader,
String expectedErrorCode) |
public static Collection<Object[]> testData()
public void setup()
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void handle_EffectiveErrorCode_WhenQueryHeaderIsPresent()
throws Exception
Exceptionpublic void handle_NoUnmarshallersAdded_ReturnsGenericAmazonServiceException()
throws Exception
Exceptionpublic void handle_NoMatchingUnmarshallers_ReturnsGenericAmazonServiceException()
throws Exception
Exceptionpublic void handle_NullContent_ReturnsGenericAmazonServiceException()
throws Exception
Exceptionpublic void handle_EmptyContent_ReturnsGenericAmazonServiceException()
throws Exception
Exceptionpublic void handle_UnmarshallerReturnsNull_ReturnsGenericAmazonServiceException()
throws Exception
Exceptionpublic void handle_UnmarshallerThrowsException_ReturnsGenericAmazonServiceException()
throws Exception
Exceptionpublic void handle_UnmarshallerReturnsException_ClientErrorType()
throws Exception
Exceptionpublic void handle_UnmarshallerReturnsException_ServiceErrorType()
throws Exception
Exceptionpublic void handle_UnmarshallerReturnsException_WithRequestId()
throws Exception
Exceptionpublic void handle_UnmarshallerReturnsException_WithCaseInsensitiveRequestId()
throws Exception
Exceptionpublic void handle_UnmarshallerReturnsException_WithAlternativeRequestId()
throws Exception
Exceptionpublic void handle_AllHeaders_DumpedIntoHeaderMap()
throws Exception
Exceptionpublic void handle_unmarshallerIsEnhanced_usesUnmarshallFromContext()
throws Exception
Exceptionpublic void handle_unmarshallerIsEnhanced_jsonContextIsCorrect()
throws Exception
Exceptionpublic void handle_unmarshallerIsEnhanced_contentIsMalformed_doesNotFail()
throws Exception
ExceptionCopyright © 2024. All rights reserved.