@Test public void testGetBucketFound() throws Exception { S3Bucket actual = provider.getBucket( BUCKET2_NAME ); assertEquals( BUCKET2_NAME, actual.getName() ); }
public S3Bucket getBucket( String bucketName ) throws S3ServiceException { return Arrays.stream( getBuckets() ).filter( x -> bucketName.equals( x.getName() ) ).findFirst().orElse( null ); }
S3ObjectsProvider { public S3Bucket getBucket( String bucketName ) throws S3ServiceException { return Arrays.stream( getBuckets() ).filter( x -> bucketName.equals( x.getName() ) ).findFirst().orElse( null ); } }
S3ObjectsProvider { public S3Bucket getBucket( String bucketName ) throws S3ServiceException { return Arrays.stream( getBuckets() ).filter( x -> bucketName.equals( x.getName() ) ).findFirst().orElse( null ); } S3ObjectsProvider( S3Service service ); }
S3ObjectsProvider { public S3Bucket getBucket( String bucketName ) throws S3ServiceException { return Arrays.stream( getBuckets() ).filter( x -> bucketName.equals( x.getName() ) ).findFirst().orElse( null ); } S3ObjectsProvider( S3Service service ); String[] getBucketsNames(); S3Bucket getBucket( String bucketName ); String[] getS3ObjectsNames( String bucketName ); S3Object getS3Object( S3Bucket bucket, String objectKey, Long byteRangeStart, Long byteRangeEnd ); S3Object getS3Object( S3Bucket bucket, String objectKey ); long getS3ObjectContentLenght( S3Bucket bucket, String objectKey ); }
S3ObjectsProvider { public S3Bucket getBucket( String bucketName ) throws S3ServiceException { return Arrays.stream( getBuckets() ).filter( x -> bucketName.equals( x.getName() ) ).findFirst().orElse( null ); } S3ObjectsProvider( S3Service service ); String[] getBucketsNames(); S3Bucket getBucket( String bucketName ); String[] getS3ObjectsNames( String bucketName ); S3Object getS3Object( S3Bucket bucket, String objectKey, Long byteRangeStart, Long byteRangeEnd ); S3Object getS3Object( S3Bucket bucket, String objectKey ); long getS3ObjectContentLenght( S3Bucket bucket, String objectKey );  }