Skip to content

Commit 202f95b

Browse files
committed
better logging from MPU examples
1 parent 647c809 commit 202f95b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/test/java/software/amazon/encryption/s3/examples/MultipartUploadExampleTest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@
55

66
import java.io.IOException;
77

8+
import static org.junit.jupiter.api.Assertions.fail;
9+
810
public class MultipartUploadExampleTest {
911

1012
@Test
1113
public void testMultipartUploadExamples() throws IOException {
1214
final String bucket = S3EncryptionClientTestResources.BUCKET;
13-
MultipartUploadExample.main(new String[]{bucket});
15+
try {
16+
MultipartUploadExample.main(new String[]{bucket});
17+
} catch (Throwable exception) {
18+
exception.printStackTrace();
19+
fail("Multipart Example Test Failed!!", exception);
20+
}
1421
}
1522
}

0 commit comments

Comments
 (0)