Skip to content

Commit c351026

Browse files
committed
Fix S3 unit tests
1 parent 51c3897 commit c351026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/s3/src/test/java/software/amazon/awssdk/services/s3/internal/resource/S3ArnConverterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,15 +443,15 @@ public void parseArn_objectLambda_colon() {
443443
@Test
444444
public void parseArn_objectLambda_noName_slash() {
445445
exception.expect(IllegalArgumentException.class);
446-
exception.expectMessage("resource must not be blank or empty");
446+
exception.expectMessage("Malformed ARN: arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/");
447447

448448
S3_ARN_PARSER.convertArn(Arn.fromString("arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint/"));
449449
}
450450

451451
@Test
452452
public void parseArn_objectLambda_noName_colon() {
453453
exception.expect(IllegalArgumentException.class);
454-
exception.expectMessage("resource must not be blank or empty");
454+
exception.expectMessage("Malformed ARN: arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint:");
455455

456456
S3_ARN_PARSER.convertArn(Arn.fromString("arn:aws:s3-object-lambda:us-west-2:123456789012:accesspoint:"));
457457
}

0 commit comments

Comments
 (0)