@@ -92,7 +92,7 @@ public static void setUp() throws NoSuchAlgorithmException {
92
92
PROVIDER = Security .getProvider ("BC" );
93
93
}
94
94
95
- // @Test
95
+ @ Test
96
96
public void asyncCustomConfiguration () {
97
97
final String objectKey = appendTestSuffix ("wrapped-s3-client-with-custom-credentials-async" );
98
98
@@ -141,7 +141,7 @@ public void asyncCustomConfiguration() {
141
141
s3Client .close ();
142
142
}
143
143
144
- // @Test
144
+ @ Test
145
145
public void asyncTopLevelConfigurationAllOptions () {
146
146
final String objectKey = appendTestSuffix ("async-top-level-all-options" );
147
147
AwsCredentialsProvider creds = DefaultCredentialsProvider .create ();
@@ -188,7 +188,7 @@ public void asyncTopLevelConfigurationAllOptions() {
188
188
s3Client .close ();
189
189
}
190
190
191
- // @Test
191
+ @ Test
192
192
public void asyncTopLevelConfiguration () {
193
193
final String objectKey = appendTestSuffix ("wrapped-s3-client-with-top-level-credentials-async" );
194
194
@@ -221,7 +221,7 @@ public void asyncTopLevelConfiguration() {
221
221
s3Client .close ();
222
222
}
223
223
224
- // @Test
224
+ @ Test
225
225
public void s3AsyncEncryptionClientTopLevelAlternateCredentials () {
226
226
final String objectKey = appendTestSuffix ("wrapped-s3-async-client-with-top-level-alternate-credentials" );
227
227
final String input = "S3EncryptionClientTopLevelAlternateCredsTest" ;
@@ -275,7 +275,7 @@ public void s3AsyncEncryptionClientTopLevelAlternateCredentials() {
275
275
s3ClientAltCreds .close ();
276
276
}
277
277
278
- // @Test
278
+ @ Test
279
279
public void s3AsyncEncryptionClientMixedCredentials () {
280
280
final String objectKey = appendTestSuffix ("wrapped-s3-client-with-mixed-credentials" );
281
281
final String input = "S3EncryptionClientTopLevelAlternateCredsTest" ;
@@ -317,7 +317,7 @@ public void s3AsyncEncryptionClientMixedCredentials() {
317
317
kmsClient .close ();
318
318
}
319
319
320
- // @Test
320
+ @ Test
321
321
public void asyncTopLevelConfigurationWrongRegion () {
322
322
final String objectKey = appendTestSuffix ("wrapped-s3-client-with-wrong-region-credentials-async" );
323
323
@@ -345,7 +345,7 @@ public void asyncTopLevelConfigurationWrongRegion() {
345
345
}
346
346
}
347
347
348
- // @Test
348
+ @ Test
349
349
public void asyncTopLevelConfigurationNullCreds () {
350
350
final String objectKey = appendTestSuffix ("wrapped-s3-client-with-null-credentials-async" );
351
351
@@ -373,7 +373,7 @@ public void asyncTopLevelConfigurationNullCreds() {
373
373
}
374
374
}
375
375
376
- // @Test
376
+ @ Test
377
377
public void putAsyncGetDefault () {
378
378
final String objectKey = appendTestSuffix ("put-async-get-default" );
379
379
@@ -406,7 +406,7 @@ public void putAsyncGetDefault() {
406
406
v3AsyncClient .close ();
407
407
}
408
408
409
- // @Test
409
+ @ Test
410
410
public void putDefaultGetAsync () {
411
411
final String objectKey = appendTestSuffix ("put-default-get-async" );
412
412
@@ -439,7 +439,7 @@ public void putDefaultGetAsync() {
439
439
v3AsyncClient .close ();
440
440
}
441
441
442
- // @Test
442
+ @ Test
443
443
public void putAsyncGetAsync () {
444
444
final String objectKey = appendTestSuffix ("put-async-get-async" );
445
445
@@ -469,7 +469,7 @@ public void putAsyncGetAsync() {
469
469
v3AsyncClient .close ();
470
470
}
471
471
472
- // @Test
472
+ @ Test
473
473
public void aesCbcV1toV3Async () {
474
474
final String objectKey = appendTestSuffix ("aes-cbc-v1-to-v3-async" );
475
475
@@ -506,7 +506,7 @@ public void aesCbcV1toV3Async() {
506
506
v3Client .close ();
507
507
}
508
508
509
- // @Test
509
+ @ Test
510
510
public void failAesCbcV1toV3AsyncWhenDisabled () {
511
511
final String objectKey = appendTestSuffix ("fail-aes-cbc-v1-to-v3-async-when-disabled" );
512
512
@@ -543,7 +543,7 @@ public void failAesCbcV1toV3AsyncWhenDisabled() {
543
543
v3Client .close ();
544
544
}
545
545
546
- // @Test
546
+ @ Test
547
547
public void AsyncAesGcmV2toV3WithInstructionFile () {
548
548
final String objectKey = appendTestSuffix ("async-aes-gcm-v2-to-v3-with-instruction-file" );
549
549
@@ -580,7 +580,7 @@ public void AsyncAesGcmV2toV3WithInstructionFile() {
580
580
v3AsyncClient .close ();
581
581
}
582
582
583
- // @Test
583
+ @ Test
584
584
public void deleteObjectWithInstructionFileSuccessAsync () {
585
585
final String objectKey = appendTestSuffix ("async-delete-object-with-instruction-file" );
586
586
@@ -623,7 +623,7 @@ public void deleteObjectWithInstructionFileSuccessAsync() {
623
623
s3Client .close ();
624
624
}
625
625
626
- // @Test
626
+ @ Test
627
627
public void deleteObjectsWithInstructionFilesSuccessAsync () {
628
628
final String [] objectKeys = {appendTestSuffix ("async-delete-object-with-instruction-file-1" ),
629
629
appendTestSuffix ("async-delete-object-with-instruction-file-2" ),
@@ -672,7 +672,7 @@ public void deleteObjectsWithInstructionFilesSuccessAsync() {
672
672
s3Client .close ();
673
673
}
674
674
675
- // @Test
675
+ @ Test
676
676
public void deleteObjectWithWrongObjectKeySuccessAsync () {
677
677
// V3 Client
678
678
S3AsyncClient v3Client = S3AsyncEncryptionClient .builder ()
@@ -684,7 +684,7 @@ public void deleteObjectWithWrongObjectKeySuccessAsync() {
684
684
v3Client .close ();
685
685
}
686
686
687
- // @Test
687
+ @ Test
688
688
public void copyObjectTransparentlyAsync () {
689
689
final String objectKey = appendTestSuffix ("copy-object-from-here-async" );
690
690
final String newObjectKey = appendTestSuffix ("copy-object-to-here-async" );
@@ -731,7 +731,7 @@ public void copyObjectTransparentlyAsync() {
731
731
* the cipher's block size.
732
732
* @throws IOException
733
733
*/
734
- // @Test
734
+ @ Test
735
735
public void tinyBufferTest () throws IOException {
736
736
// BouncyCastle actually returns null buffers, unlike ACCP and SunJCE, which return empty buffers
737
737
Security .addProvider (new BouncyCastleProvider ());
@@ -771,7 +771,7 @@ public void tinyBufferTest() throws IOException {
771
771
exec .shutdown ();
772
772
}
773
773
774
- // @Test
774
+ @ Test
775
775
public void testAsyncInstructionFileConfig () {
776
776
final String objectKey = appendTestSuffix ("async-instruction-file-config" );
777
777
final String input = "SimpleTestOfV3EncryptionClient" ;
@@ -828,7 +828,7 @@ public void testAsyncInstructionFileConfig() {
828
828
s3Client .close ();
829
829
}
830
830
831
- // @Test
831
+ @ Test
832
832
public void wrappedClientMultipartUploadThrowsException () throws IOException {
833
833
final String objectKey = appendTestSuffix ("multipart-put-object-async-wrapped-client" );
834
834
@@ -907,14 +907,14 @@ public void wrappedClientMultipartUploadThrowsException() throws IOException {
907
907
v3Client .close ();
908
908
}
909
909
910
- // @Test
910
+ @ Test
911
911
public void S3AsyncClientBuilderForbidsMultipartEnabled () throws IOException {
912
912
assertThrows (
913
913
UnsupportedOperationException .class ,
914
914
() -> S3AsyncEncryptionClient .builder ().multipartEnabled (Boolean .TRUE ));
915
915
}
916
916
917
- // @Test
917
+ @ Test
918
918
public void S3AsyncClientBuilderForbidsMultipartConfiguration () throws IOException {
919
919
assertThrows (
920
920
UnsupportedOperationException .class ,
0 commit comments