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
UnsupportedEncodingException
public void handle_EffectiveErrorCode_WhenQueryHeaderIsPresent() throws Exception
Exception
public void handle_NoUnmarshallersAdded_ReturnsGenericAmazonServiceException() throws Exception
Exception
public void handle_NoMatchingUnmarshallers_ReturnsGenericAmazonServiceException() throws Exception
Exception
public void handle_NullContent_ReturnsGenericAmazonServiceException() throws Exception
Exception
public void handle_EmptyContent_ReturnsGenericAmazonServiceException() throws Exception
Exception
public void handle_UnmarshallerReturnsNull_ReturnsGenericAmazonServiceException() throws Exception
Exception
public void handle_UnmarshallerThrowsException_ReturnsGenericAmazonServiceException() throws Exception
Exception
public void handle_UnmarshallerReturnsException_ClientErrorType() throws Exception
Exception
public void handle_UnmarshallerReturnsException_ServiceErrorType() throws Exception
Exception
public void handle_UnmarshallerReturnsException_WithRequestId() throws Exception
Exception
public void handle_UnmarshallerReturnsException_WithCaseInsensitiveRequestId() throws Exception
Exception
public void handle_UnmarshallerReturnsException_WithAlternativeRequestId() throws Exception
Exception
public void handle_AllHeaders_DumpedIntoHeaderMap() throws Exception
Exception
public void handle_unmarshallerIsEnhanced_usesUnmarshallFromContext() throws Exception
Exception
public void handle_unmarshallerIsEnhanced_jsonContextIsCorrect() throws Exception
Exception
public void handle_unmarshallerIsEnhanced_contentIsMalformed_doesNotFail() throws Exception
Exception
Copyright © 2024. All rights reserved.