Skip to content

Commit e62ddf3

Browse files
authored
Merge pull request #236 from alex-chew/fix-parsed-ciphertext-test
test: fix ParsedCiphertextTest, add to AllTestsSuite
2 parents ca03d79 + 58bea6d commit e62ddf3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/test/java/com/amazonaws/encryptionsdk/AllTestsSuite.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@
8989
RestrictRegionExampleTest.class,
9090
SimpleDataKeyCachingExampleTest.class,
9191
SetEncryptionAlgorithmExampleTest.class,
92-
SetCommitmentPolicyExampleTest.class
92+
SetCommitmentPolicyExampleTest.class,
93+
ParsedCiphertextTest.class,
9394
})
9495
public class AllTestsSuite {
9596
}

src/test/java/com/amazonaws/encryptionsdk/ParsedCiphertextTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class ParsedCiphertextTest extends CiphertextHeaders {
2525
public void init() {
2626
masterKeyProvider = spy(new StaticMasterKey("testmaterial"));
2727

28-
encryptionClient_ = AwsCrypto.standard();
28+
encryptionClient_ = AwsCrypto.builder().withCommitmentPolicy(CommitmentPolicy.ForbidEncryptAllowDecrypt).build();
2929
encryptionClient_.setEncryptionAlgorithm(CryptoAlgorithm.ALG_AES_128_GCM_IV12_TAG16_HKDF_SHA256);
3030
}
3131

0 commit comments

Comments
 (0)