@Test void getUrl_existingObject_returnsUrlWithS3Scheme() throws Exception { AmazonS3Client amazonS3 = mock(AmazonS3Client.class); SimpleStorageResource simpleStorageResource = new SimpleStorageResource(amazonS3, "bucket", "object", new SyncTaskExecutor()); assertThat(simpleStorageResource.getS3Uri()) .isEqualTo(new URI("s3: }
public URI getS3Uri() { try { return new URI("s3", " } catch (URISyntaxException e) { throw new RuntimeException("Failed to resolve s3: } }
SimpleStorageResource extends AbstractResource implements WritableResource { public URI getS3Uri() { try { return new URI("s3", " } catch (URISyntaxException e) { throw new RuntimeException("Failed to resolve s3: } } }
SimpleStorageResource extends AbstractResource implements WritableResource { public URI getS3Uri() { try { return new URI("s3", " } catch (URISyntaxException e) { throw new RuntimeException("Failed to resolve s3: } } SimpleStorageResource(AmazonS3 amazonS3, String bucketName, String objectName,
			TaskExecutor taskExecutor);  SimpleStorageResource(AmazonS3 amazonS3, String bucketName, String objectName,
			TaskExecutor taskExecutor, String versionId); }
SimpleStorageResource extends AbstractResource implements WritableResource { public URI getS3Uri() { try { return new URI("s3", " } catch (URISyntaxException e) { throw new RuntimeException("Failed to resolve s3: } } SimpleStorageResource(AmazonS3 amazonS3, String bucketName, String objectName,
			TaskExecutor taskExecutor);  SimpleStorageResource(AmazonS3 amazonS3, String bucketName, String objectName,
			TaskExecutor taskExecutor, String versionId); @Override String getDescription(); @Override InputStream getInputStream(); @Override boolean exists(); @Override long contentLength(); @Override long lastModified(); @Override String getFilename(); @Override URL getURL(); URI getS3Uri(); @Override File getFile(); @Override boolean isWritable(); @Override OutputStream getOutputStream(); @Override SimpleStorageResource createRelative(String relativePath); AmazonS3 getAmazonS3(); }
SimpleStorageResource extends AbstractResource implements WritableResource { public URI getS3Uri() { try { return new URI("s3", " } catch (URISyntaxException e) { throw new RuntimeException("Failed to resolve s3: } } SimpleStorageResource(AmazonS3 amazonS3, String bucketName, String objectName,
			TaskExecutor taskExecutor);  SimpleStorageResource(AmazonS3 amazonS3, String bucketName, String objectName,
			TaskExecutor taskExecutor, String versionId); @Override String getDescription(); @Override InputStream getInputStream(); @Override boolean exists(); @Override long contentLength(); @Override long lastModified(); @Override String getFilename(); @Override URL getURL(); URI getS3Uri(); @Override File getFile(); @Override boolean isWritable(); @Override OutputStream getOutputStream(); @Override SimpleStorageResource createRelative(String relativePath); AmazonS3 getAmazonS3();  }