File tree Expand file tree Collapse file tree 5 files changed +33
-8
lines changed
src/test/java/software/amazon/encryption/s3/examples Expand file tree Collapse file tree 5 files changed +33
-8
lines changed Original file line number Diff line number Diff line change 33import org .junit .jupiter .api .Test ;
44import software .amazon .encryption .s3 .utils .S3EncryptionClientTestResources ;
55
6+ import static org .junit .jupiter .api .Assertions .fail ;
7+
68public class AsyncClientExampleTest {
79
810 @ Test
911 public void testAsyncClientExamples () {
1012 final String bucket = S3EncryptionClientTestResources .BUCKET ;
11- AsyncClientExample .main (new String []{bucket });
13+ try {
14+ AsyncClientExample .main (new String []{bucket });
15+ } catch (Throwable exception ) {
16+ exception .printStackTrace ();
17+ fail ("Async Example Test Failed!!" , exception );
18+ }
1219 }
1320}
Original file line number Diff line number Diff line change 22
33import org .junit .jupiter .api .Test ;
44
5+ import static org .junit .jupiter .api .Assertions .fail ;
6+
57public class ClientConfigurationExampleTest {
68 @ Test
79 public void testClientConfigurationExamples () {
8- ClientConfigurationExample .main (new String [0 ]);
10+ try {
11+ ClientConfigurationExample .main (new String [0 ]);
12+ } catch (Throwable exception ) {
13+ exception .printStackTrace ();
14+ fail ("Client Configuration Example Test Failed!!" , exception );
15+ }
916 }
1017}
Original file line number Diff line number Diff line change 33import org .junit .jupiter .api .Test ;
44import software .amazon .encryption .s3 .utils .S3EncryptionClientTestResources ;
55
6- import java .io .IOException ;
7-
86import static org .junit .jupiter .api .Assertions .fail ;
97
108public class MultipartUploadExampleTest {
119
1210 @ Test
13- public void testMultipartUploadExamples () throws IOException {
11+ public void testMultipartUploadExamples () {
1412 final String bucket = S3EncryptionClientTestResources .BUCKET ;
1513 try {
1614 MultipartUploadExample .main (new String []{bucket });
Original file line number Diff line number Diff line change 55import org .junit .jupiter .api .Test ;
66import software .amazon .encryption .s3 .utils .S3EncryptionClientTestResources ;
77
8+ import static org .junit .jupiter .api .Assertions .fail ;
9+
810public class PartialKeyPairExampleTest {
911
1012 @ Test
1113 public void testPartialKeyPairExamples () {
1214 final String bucket = S3EncryptionClientTestResources .BUCKET ;
13-
14- PartialKeyPairExample .main (new String []{bucket });
15+ try {
16+ PartialKeyPairExample .main (new String []{bucket });
17+ } catch (Throwable exception ) {
18+ exception .printStackTrace ();
19+ fail ("Partial Key Pair Example Test Failed!!" , exception );
20+ }
1521 }
1622}
Original file line number Diff line number Diff line change 33import org .junit .jupiter .api .Test ;
44import software .amazon .encryption .s3 .utils .S3EncryptionClientTestResources ;
55
6+ import static org .junit .jupiter .api .Assertions .fail ;
7+
68public class RangedGetExampleTest {
79
810 @ Test
911 public void testRangedGetExamples () {
1012 final String bucket = S3EncryptionClientTestResources .BUCKET ;
11- RangedGetExample .main (new String []{bucket });
13+ try {
14+ RangedGetExample .main (new String []{bucket });
15+ } catch (Throwable exception ) {
16+ exception .printStackTrace ();
17+ fail ("Ranged Get Test Failed!!" , exception );
18+ }
1219 }
1320}
You can’t perform that action at this time.
0 commit comments