Skip to content

Commit

Permalink
Update a testUriParsing
Browse files Browse the repository at this point in the history
AmazonS3Utils.createS3(uriString) gives an exception when fails.
  • Loading branch information
ksugar committed Apr 18, 2024
1 parent 7cd782d commit a2bfb87
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ public void testUriParsing() throws URISyntaxException {
for (String prefix : prefixes)
for (String bucket : buckets)
for (String path : paths) {
URI uri = new URI(prefix + bucket + "/" + path);
String uriString = prefix + bucket + "/" + path;
URI uri = new URI(uriString);
assertEquals("bucket from uri", bucket, AmazonS3Utils.getS3Bucket(uri));
assertEquals("key from uri", path, AmazonS3Utils.getS3Key(uri));
AmazonS3Utils.createS3(uriString);
}

}
Expand Down

0 comments on commit a2bfb87

Please sign in to comment.