Skip to content

Commit

Permalink
Fix checkstyle issues
Browse files Browse the repository at this point in the history
  • Loading branch information
humanzz committed Feb 24, 2023
1 parent 09e99d2 commit 803b9f8
Showing 1 changed file with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,15 @@ public void testResponseDescriptors() throws Exception {

@Test
public void testSqsSendMessageSubsegmentContainsQueueUrl() throws Exception {
SdkHttpClient mockClient = mockClientWithSuccessResponse("<SendMessageResponse><SendMessageResult><MD5OfMessageBody>b10a8db164e0754105b7a99be72e3fe5</MD5OfMessageBody><MessageId>abc-def-ghi</MessageId></SendMessageResult><ResponseMetadata><RequestId>123-456-789</RequestId></ResponseMetadata></SendMessageResponse>");
SdkHttpClient mockClient = mockClientWithSuccessResponse(
"<SendMessageResponse>" +
"<SendMessageResult>" +
"<MD5OfMessageBody>b10a8db164e0754105b7a99be72e3fe5</MD5OfMessageBody>" +
"<MessageId>abc-def-ghi</MessageId>" +
"</SendMessageResult>" +
"<ResponseMetadata><RequestId>123-456-789</RequestId></ResponseMetadata>" +
"</SendMessageResponse>"
);
SqsClient client = sqsClient(mockClient);

Segment segment = AWSXRay.getCurrentSegment();
Expand All @@ -152,7 +160,12 @@ public void testSqsSendMessageSubsegmentContainsQueueUrl() throws Exception {

@Test
public void testSnsPublishSubsegmentContainsTopicArn() throws Exception {
SdkHttpClient mockClient = mockClientWithSuccessResponse("<PublishResponse><PublishResult><MessageId>abc-def-ghi</MessageId></PublishResult><ResponseMetadata><RequestId>123-456-789</RequestId></ResponseMetadata></PublishResponse>");
SdkHttpClient mockClient = mockClientWithSuccessResponse(
"<PublishResponse>" +
"<PublishResult><MessageId>abc-def-ghi</MessageId></PublishResult>" +
"<ResponseMetadata><RequestId>123-456-789</RequestId></ResponseMetadata>" +
"</PublishResponse>"
);
SnsClient client = snsClient(mockClient);

Segment segment = AWSXRay.getCurrentSegment();
Expand Down

0 comments on commit 803b9f8

Please sign in to comment.