From 762d7609be76cdf6a47a1bfb70d4fcc40d74ea4f Mon Sep 17 00:00:00 2001 From: Adrian Woodhead Date: Fri, 2 Mar 2018 18:15:49 +0000 Subject: [PATCH] wrapped some lines so code example doesn't require scroll bards --- Using-S3Proxy-in-Java-projects.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Using-S3Proxy-in-Java-projects.md b/Using-S3Proxy-in-Java-projects.md index e1439b1..ddbda8b 100644 --- a/Using-S3Proxy-in-Java-projects.md +++ b/Using-S3Proxy-in-Java-projects.md @@ -87,9 +87,11 @@ public void example() { .standard() .withCredentials( new AWSStaticCredentialsProvider( - new BasicAWSCredentials(s3Proxy.getAccessKey(), s3Proxy.getSecretKey()))) + new BasicAWSCredentials(s3Proxy.getAccessKey(), + s3Proxy.getSecretKey()))) .withEndpointConfiguration( - new EndpointConfiguration(s3Proxy.getUri().toString(), Regions.US_EAST_1.getName())) + new EndpointConfiguration(s3Proxy.getUri().toString(), + Regions.US_EAST_1.getName())) .build(); s3Client.createBucket("test_bucket"); @@ -97,7 +99,8 @@ public void example() { myS3Uploader.uploadFile(s3Client, someFile); //verify the expected results of the above code - List summaries = s3Client.listObjects("test_bucket").getObjectSummaries(); + List summaries = s3Client.listObjects("test_bucket") + .getObjectSummaries(); assertThat(summaries).hasSize(1); assertThat(summaries.get(0).getSize()).isEqualTo(someFile.length()); }