@Test void testGetLocationForObjectNameAndBucket() throws Exception { assertThat(getLocationForBucketAndObject("foo", "bar")).isEqualTo("s3: assertThat(getLocationForBucketAndObject("foo", "bar/baz")) .isEqualTo("s3: assertThat(getLocationForBucketAndObject("foo", "bar/baz.txt")) .isEqualTo("s3: }
static String getLocationForBucketAndObject(String bucketName, String objectName) { Assert.notNull(bucketName, "Bucket name must not be null"); Assert.notNull(objectName, "ObjectName name must not be null"); StringBuilder location = new StringBuilder(S3_PROTOCOL_PREFIX.length() + bucketName.length() + PATH_DELIMITER.length() + objectName.length()); location.append(S3_PROTOCOL_PREFIX); location.append(bucketName); location.append(PATH_DELIMITER); location.append(objectName); return location.toString(); }
SimpleStorageNameUtils { static String getLocationForBucketAndObject(String bucketName, String objectName) { Assert.notNull(bucketName, "Bucket name must not be null"); Assert.notNull(objectName, "ObjectName name must not be null"); StringBuilder location = new StringBuilder(S3_PROTOCOL_PREFIX.length() + bucketName.length() + PATH_DELIMITER.length() + objectName.length()); location.append(S3_PROTOCOL_PREFIX); location.append(bucketName); location.append(PATH_DELIMITER); location.append(objectName); return location.toString(); } }
SimpleStorageNameUtils { static String getLocationForBucketAndObject(String bucketName, String objectName) { Assert.notNull(bucketName, "Bucket name must not be null"); Assert.notNull(objectName, "ObjectName name must not be null"); StringBuilder location = new StringBuilder(S3_PROTOCOL_PREFIX.length() + bucketName.length() + PATH_DELIMITER.length() + objectName.length()); location.append(S3_PROTOCOL_PREFIX); location.append(bucketName); location.append(PATH_DELIMITER); location.append(objectName); return location.toString(); } private  SimpleStorageNameUtils(); }
SimpleStorageNameUtils { static String getLocationForBucketAndObject(String bucketName, String objectName) { Assert.notNull(bucketName, "Bucket name must not be null"); Assert.notNull(objectName, "ObjectName name must not be null"); StringBuilder location = new StringBuilder(S3_PROTOCOL_PREFIX.length() + bucketName.length() + PATH_DELIMITER.length() + objectName.length()); location.append(S3_PROTOCOL_PREFIX); location.append(bucketName); location.append(PATH_DELIMITER); location.append(objectName); return location.toString(); } private  SimpleStorageNameUtils();  }
SimpleStorageNameUtils { static String getLocationForBucketAndObject(String bucketName, String objectName) { Assert.notNull(bucketName, "Bucket name must not be null"); Assert.notNull(objectName, "ObjectName name must not be null"); StringBuilder location = new StringBuilder(S3_PROTOCOL_PREFIX.length() + bucketName.length() + PATH_DELIMITER.length() + objectName.length()); location.append(S3_PROTOCOL_PREFIX); location.append(bucketName); location.append(PATH_DELIMITER); location.append(objectName); return location.toString(); } private  SimpleStorageNameUtils();   }