Skip to content

Commit f7023a4

Browse files
author
Anirav Kareddy
committed
throws runtime exception if build was successful in test cases (should not be)
1 parent c5b8e41 commit f7023a4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/test/java/software/amazon/encryption/s3/S3EncryptionClientCompatibilityTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,7 @@ public void validateAgainstSettingLegacyWrappingOnClientWithKmsKeyringPassedV1to
10291029
.enableLegacyWrappingAlgorithms(true)
10301030
.enableLegacyUnauthenticatedModes(true)
10311031
.build();
1032+
throw new RuntimeException("Expected failure");
10321033
} catch (S3EncryptionClientException e) {
10331034
assertTrue(e.getMessage().contains("Legacy wrapping algorithms are not enabled for this keyring"));
10341035
}

0 commit comments

Comments
 (0)